From: Brian Gernhardt Date: Thu, 21 Dec 2006 00:56:57 GMT Subject: Re: [BUG] daemon.c blows up on OSX Message-ID: <923634DE-0F3E-4A96-BC37-CB7E25C7251B@silverinsanity.com> (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,