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

Re: Git on QNX

From
Alex Riesen <raa.lkml@gmail.com>
Date
Dec 16, 2009, 14:20 UTC
Message-ID
<81b0412b0912160620v1556fd12i17897269f4101128@mail.gmail.com>
In-Reply-To
<905315640912151413g10ee5befh58fbd171237e7659@mail.gmail.com>
On Tue, Dec 15, 2009 at 23:13, Tarmigan <tarmigan+git@gmail.com> wrote:
Show 21 quoted lines
> On Tue, Dec 15, 2009 at 1:42 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> Tarmigan <tarmigan+git@gmail.com> writes:
>>> diff --git a/git-compat-util.h b/git-compat-util.h
>>> index 5c59687..857e938 100644
>>> --- a/git-compat-util.h
>>> +++ b/git-compat-util.h
>>> @@ -79,6 +84,7 @@
>>>  #include <stdlib.h>
>>>  #include <stdarg.h>
>>>  #include <string.h>
>>> +#include <strings.h>
>>>  #include <errno.h>
>>>  #include <limits.h>
>>>  #include <sys/param.h>
>>
>> Other hunks are QNX specific enough but this hunk is worrisome; you cannot
>> tell how you are hurting other platforms with this change.  Can you tell
>> declarations of which functions are missing on QNX without this change?
>
> strcasecmp()
> http://www.opengroup.org/onlinepubs/000095399/functions/strcasecmp.html

Just for completeness: http://www.qnx.com/developers/docs/6.4.1/neutrino/lib_ref/s/strcasecmp.html http://www.qnx.com/developers/docs/6.4.1/neutrino/lib_ref/s/strcmpi.html

> I agree that this change could affect other platforms and they've
> gotten along fine without it so far.  I'm surprised no others have
> needed it.  Would it be better wrapped in a #ifdef?
If you put the ifdef in git-compat-util.h
Previous: TarmiganNext: Sean Boudreau
Message 4 of 7 in “Git on QNX”
  1. TarmiganDec 15, 2009
  2. Junio C HamanoDec 15, 2009
  3. TarmiganDec 15, 2009
  4. Alex RiesenDec 16, 2009
  5. Sean BoudreauDec 16, 2009
  6. TarmiganDec 17, 2009
  7. Sean BoudreauDec 17, 2009

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.