Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2001 02:50:01 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/30317: nability to compile programs defining _POSIX_SOURCE
Message-ID:  <200111251050.fAPAo1W79806@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/30317; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: <jkoshy@FreeBSD.ORG>
Cc: <freebsd-gnats-submit@FreeBSD.ORG>
Subject: Re: bin/30317: nability to compile programs defining _POSIX_SOURCE
Date: Sun, 25 Nov 2001 21:46:39 +1100 (EST)

 On Wed, 21 Nov 2001 jkoshy@FreeBSD.ORG wrote:
 
 >  If you need to use <sys/socket.h>, then by definition your code
 >  falls outside of the gambit defined by the POSIX standard, so you
 >  should not be defining `_POSIX_SOURCE'.
 
 Correct for the 1990 standard.
 
 >  Incidentally, the `_POSIX_SOURCE' feature test macro is deprecated;
 >  `_POSIX_C_SOURCE' is recommended and can be given a numeric value
 >  corresponding to revision of the POSIX standard desired.
 
 POSIX.1-200x-draft7 has <sys/socket.h>, and for strict conformance,
 _POSIX_C_SOURCE has to be defined as 200xxxL before including any
 header.  So the PR mostly applies to POSIX.1-200x.
 
 Bruce
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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