threads / bug / 43766

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

Brian Gernhardt· Dec 21, 2006, 00:56 UTC · lore

(I originally forgot to send this to the list. Oops. Difference between "Reply" and "Reply All" is small, but important.)

On Dec 20, 2006, at 7:44 PM, Junio C Hamano wrote:
> Does everybody use Apple CC on OSX?  Is the symbol defined even
> with GCC?  Or Gcc fixes headers well enough and makes this a
> non-issue?

Apple CC == gcc, as far as I can tell. And the definition of _POSIX_C_SOURCE, which seems to disable too much stuff, is in /usr/ include/sys/cdefs.h:

/* Deal with various X/Open Portability Guides and Single UNIX Spec. */ #ifdef _XOPEN_SOURCE #if _XOPEN_SOURCE - 0L >= 600L #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200112L #elif _XOPEN_SOURCE - 0L >= 500L #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 199506L #endif #endif

Why _POSIX_C_SOURCE disables strncasecmp, I don't know. It makes me sad.

Yours,

← back to recent threads