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

Re: [PATCH] Include xmlparse.h instead of expat.h on QNX

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 11, 2013, 21:41 UTC
Message-ID
<7vehgmle8z.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20130211210621.GC32740@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 25 quoted lines
> On Mon, Feb 11, 2013 at 12:59:55PM -0800, Matt Kraai wrote:
>
>> From: Matt Kraai <matt.kraai@amo.abbott.com>
>> 
>> QNX 6.3.2 through 6.5.0 include Expat 1.1, which provides xmlparse.h
>> instead of expat.h, so include the former on QNX systems.
>
> So it is not just QNX, but rather older versions of expat?
>
>> diff --git a/http-push.c b/http-push.c
>> index 9923441..55c575e 100644
>> --- a/http-push.c
>> +++ b/http-push.c
>> @@ -11,7 +11,11 @@
>>  #include "list-objects.h"
>>  #include "sigchain.h"
>>  
>> +#ifndef __QNX__
>>  #include <expat.h>
>> +#else
>> +#include <xmlparse.h>
>> +#endif
>
> If that is the case, should this #ifdef look for EXPAT_NEEDS_XMLPARSE_H,
> and that macro triggered externally?

Heh, our mails crossed. Another thing neither of us mentioned is how compatible the subset of libexpat our codebase uses to what was offered by the older versions of expat. I would not be surprised if nobody has tried running the resulting binary linked with expat 1.

Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 11 in “Include xmlparse.h instead of expat.h on QNX”
  1. Include xmlparse.h instead of expat.h on QNXMatt Kraai, Feb 11, 2013
  2. Jeff KingFeb 11, 2013
  3. Matt KraaiFeb 11, 2013
  4. Allow building with xmlparse.hMatt Kraai, Feb 11, 2013
  5. Junio C HamanoFeb 11, 2013
  6. Allow building with xmlparse.hMatt Kraai, Feb 11, 2013
  7. Junio C HamanoFeb 11, 2013
  8. Junio C HamanoFeb 11, 2013
  9. Junio C HamanoFeb 11, 2013
  10. Matt KraaiFeb 11, 2013
  11. Junio C HamanoFeb 11, 2013

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.