From owner-freebsd-current Mon Nov 11 4:31:45 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52B6F37B401 for ; Mon, 11 Nov 2002 04:31:44 -0800 (PST) Received: from www.contentmedia.de (www.vivido.de [213.61.138.92]) by mx1.FreeBSD.org (Postfix) with SMTP id 5503A43E6E for ; Mon, 11 Nov 2002 04:31:42 -0800 (PST) (envelope-from marc@informatik.uni-bremen.de) Received: (qmail 14601 invoked from network); 11 Nov 2002 12:28:02 -0000 Received: from unknown (HELO leeloo.intern.geht.de) (80.134.181.218) by www.contentmedia.de with SMTP; 11 Nov 2002 12:28:02 -0000 Subject: addition to cdefs From: Marc Recht To: current@freebsd.org Cc: mike@freebsd.org Content-Type: multipart/mixed; boundary="=-qeNW0QEPwqGnbjlv+VPJ" X-Mailer: Ximian Evolution 1.0.8 Date: 11 Nov 2002 13:31:36 +0100 Message-Id: <1037017897.779.20.camel@leeloo.intern.geht.de> Mime-Version: 1.0 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-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