git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Dec 21, 2006, 00:56 UTC
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,
Message 1 of 1 in “Re: [BUG] daemon.c blows up on OSX”
  1. Brian GernhardtDec 21, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.