Re: [BUG] daemon.c blows up on OSX
flat view
From: Brian Gernhardt <hidden>
Date: 2016-08-11 20:39:04
From: Brian Gernhardt <hidden>
Date: 2016-08-11 20:39:04
(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,