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

Started by Brian Gernhardt on Aug 11, 2016

open the first message on its own page

Message details and related content
(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,
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help