From owner-freebsd-bugs Wed Nov 21 21:40: 4 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E757E37B41A for ; Wed, 21 Nov 2001 21:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAM5e1s77000; Wed, 21 Nov 2001 21:40:01 -0800 (PST) (envelope-from gnats) Date: Wed, 21 Nov 2001 21:40:01 -0800 (PST) Message-Id: <200111220540.fAM5e1s77000@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Subject: Re: bin/30317: nability to compile programs defining _POSIX_SOURCE Reply-To: Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/30317; it has been noted by GNATS. From: To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/30317: nability to compile programs defining _POSIX_SOURCE Date: Wed, 21 Nov 2001 21:36:07 -0800 (PST) If `_POSIX_SOURCE' is defined the system has to make visible the same namespace as permitted and required by IEEE Std 1003.1-1990, nothing more, nothing less. Your patch would make `u_char' .. `uint' visible to programs even if `_POSIX_SOURCE' were defined, which would cause portable programs to break. If you need to use , then by definition your code falls outside of the gambit defined by the POSIX standard, so you should not be defining `_POSIX_SOURCE'. 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. Regards, Koshy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message