Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jul 1995 15:40:01 -0700
From:      gordon@sneaky.lonestar.org
To:        freebsd-bugs
Subject:   i386/596: <ctype.h> and <stdlib.h> conflict with _POSIX_SOURCE
Message-ID:  <199507062240.PAA06356@freefall.cdrom.com>
In-Reply-To: Your message of Thu, 6 Jul 95 16:26 CDT <m0sTyR8-0001hkC@hammy.lonestar.org>

next in thread | previous in thread | raw e-mail | index | archive | help

>Number:         596
>Category:       i386
>Synopsis:       <ctype.h> and <stdlib.h> conflict with _POSIX_SOURCE
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul  6 15:40:01 1995
>Originator:     Gordon Burditt
>Organization:
what organization? 
>Release:        FreeBSD 2.0-BUILT-19950603 i386
>Environment:
	FreeBSD 2.0.5, gcc 2.6.3

>Description:

	If <stdlib.h> and <ctype.h> are both included with _POSIX_SOURCE
	defined, rune_t is not defined and this leads to a large
	bunch of errors in <ctype.h>.  (This problem surfaced with
	real code, but just the include files are needed to reproduce
	it.)

>How-To-Repeat:

	Compile the following 3-line program (cc -c x.c):

	# define _POSIX_SOURCE
	# include <stdlib.h>
	# include <ctype.h>

	and get a flood of error messages starting with complaints
	about rune_t (a typedef apparently not defined).

	however, this works:

	# define _POSIX_SOURCE
	# include <ctype.h>
	# include <stdlib.h>


>Fix:
	
	





>Audit-Trail:
>Unformatted:





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507062240.PAA06356>