Date: 11 Nov 2002 13:31:36 +0100 From: Marc Recht <marc@informatik.uni-bremen.de> To: current@freebsd.org Cc: mike@freebsd.org Subject: addition to cdefs Message-ID: <1037017897.779.20.camel@leeloo.intern.geht.de>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi! I've made a small patch to make it possible to enable BSD extensions although _POSIX_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE has been defined. This is made with a new define _BSD_SOURCE right after the XOPEN_SOURCE handling. It sets __XSI_VISIBLE 600 and __BSD_VISIBLE 1. This is needed for some programs. For example for Python 2.3cvs sets (among others) _POSIX_C_SOURCE 199506L, but also expects to have chroot and friends. Regards, Marc [-- Attachment #2 --] --- cdefs.h.orig Tue Oct 22 11:44:42 2002 +++ cdefs.h Mon Nov 11 12:47:49 2002 @@ -333,6 +333,12 @@ #endif #endif +/* Allow BSD extensions to POSIX. */ +#if defined(_BSD_SOURCE) && (defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE)) +#define __XSI_VISIBLE 600 +#define __BSD_VISIBLE 1 +#endif + /* * Deal with all versions of POSIX. The ordering relative to the tests above is * important.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1037017897.779.20.camel>
