Skip site navigation (1)Skip section navigation (2)
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

--=-qeNW0QEPwqGnbjlv+VPJ
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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



--=-qeNW0QEPwqGnbjlv+VPJ
Content-Disposition: attachment; filename=cdefs.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=cdefs.diff; charset=ISO-8859-1

--- 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
=20
+/* Allow BSD extensions to POSIX. */
+#if defined(_BSD_SOURCE) && (defined(_POSIX_SOURCE) || defined(_POSIX_C_SO=
URCE))
+#define	__XSI_VISIBLE		600
+#define	__BSD_VISIBLE		1
+#endif
+
 /*
  * Deal with all versions of POSIX.  The ordering relative to the tests ab=
ove is
  * important.

--=-qeNW0QEPwqGnbjlv+VPJ--


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




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