threads / bug / 6040

Re: [BUG] daemon.c blows up on OSX

Subject: Re: [BUG] daemon.c blows up on OSX

## tl;dr

One message between Dec 21, 2006 and Dec 21, 2006.

replies: 0people: 1as markdown or json

Albert Cahalan· Dec 21, 2006, 02:52 UTC · lore
Linus Torvalds writes:
Show 6 quoted lines
> So it would appear that for OS X, the
>
>       #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
>       #define _GNU_SOURCE
>       #define _BSD_SOURCE
> sequence actually _disables_ those things.
Yes, of course. The odd one here is glibc.

Normal systems enable everything by default. As soon as you specify a feature define, you get ONLY what you asked for. I'm not sure why glibc is broken, but I suspect that somebody wants to make everyone declare their code to be GNU source. (despite many "GNU" things not working on the HURD at all)

Define _APPLE_C_SOURCE to make MacOS X give you everything.

← back to recent threads