Subject: standards/2323: #include breaks with -D_POSIX_SOURCE defined
To: None <gnats-bugs@gnats.netbsd.org>
From: Bugs Galore <gnats@NetBSD.ORG>
List: netbsd-bugs
Date: 04/13/1996 04:35:12
>Number:         2323
>Category:       standards
>Synopsis:       #include <curses.h> breaks with -D_POSIX_SOURCE defined
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 13 04:35:02 1996
>Last-Modified:
>Originator:     Giles Lean
>Organization:
--
Giles Lean             <giles@nemeton.com.au>           +61 3 9480 2118
PGP Key fingerprint =  9F FB 28 37 81 F2 AC F3  8A B0 37 E5 73 CF 39 E7
>Release:        1.1
>Environment:
	
System: NetBSD nemeton.com.au 1.1 NetBSD 1.1 (NEMETON) #2: Mon Apr 8 20:55:12 EST 1996 giles@nemeton.com.au:/usr/src/sys/arch/i386/compile/NEMETON i386


>Description:
	<curses.h> uses u_int which is not defined by <sys/types.h>
	for code being compiled with -D_POSIX_SOURCE set.
>How-To-Repeat:
	$ echo "#include <sys/types.h>\n#include <curses.h>" > a.c
	$ cc -c -D_POSIX_SOURCE a.c
>Fix:
	Is there a standards guru in the house?

	I recognise a namespace problem when I see one, but I won't
	proffer a solution. :)

>Audit-Trail:
>Unformatted:
>Received: (from giles@localhost) by nemeton.com.au (8.6.12/8.6.9) id QAA04558; Sat, 13 Apr 1996 16:33:00 +1000
Date: Sat, 13 Apr 1996 16:33:00 +1000
From: Giles Lean <giles@nemeton.com.au>
Message-Id: <199604130633.QAA04558@nemeton.com.au>
To: gnats-bugs@gnats.netbsd.org
Subject: #include <curses.h> breaks with -D_POSIX_SOURCE defined
Reply-To: giles@nemeton.com.au
Content-Type: text