[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: On linux too (was Re: Base compilation broken on NetBSD)
From: |
David Chisnall |
Subject: |
Re: On linux too (was Re: Base compilation broken on NetBSD) |
Date: |
Fri, 2 Nov 2012 09:09:48 +0000 |
On 2 Nov 2012, at 09:05, Wolfgang Lux wrote:
> Do we need to define _XOPEN_SOURCE at all? In the headers on OS X I found
> this comment:
> Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
> available APIs to exactly the set of APIs defined by the
> corresponding standard, based on the value defined.
> I guess (at least) other BSD based systems handle this macro similarly (I'm
> too lazy to fire up a VM to check).
Yes, BSD libc uses the macro in this way. Unfortunately, glibc uses it in the
opposite way, and *only* exposes standard functionality if these macros are
defined. *BSD libc defaults to exposing everything, glibc defaults to exposing
a very limited subset. This gets doubly irritating on glibc because there are
some pairs of functions that it is not possible to simultaneously expose,
because some are POSIX and some are from BSD and the feature macros to expose
one hide the other...
David
-- Send from my Jacquard Loom
- Base compilation broken on NetBSD, Riccardo Mottola, 2012/11/01
- On linux too (was Re: Base compilation broken on NetBSD), Philippe Roussel, 2012/11/01
- Re: On linux too (was Re: Base compilation broken on NetBSD), Wolfgang Lux, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), David Chisnall, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Wolfgang Lux, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Richard Frith-Macdonald, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Wolfgang Lux, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD),
David Chisnall <=
- Re: On linux too (was Re: Base compilation broken on NetBSD), Wolfgang Lux, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Richard Frith-Macdonald, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Wolfgang Lux, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Wolfgang Lux, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Richard Frith-Macdonald, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Wolfgang Lux, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Wolfgang Lux, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Philippe Roussel, 2012/11/02
- Re: On linux too (was Re: Base compilation broken on NetBSD), Richard Frith-Macdonald, 2012/11/03
- Re: On linux too (was Re: Base compilation broken on NetBSD), Richard Frith-Macdonald, 2012/11/02