Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

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

From: Matt Kraai <hidden>
Date: 2016-06-15 22:56:08

On Mon, Feb 11, 2013 at 04:06:21PM -0500, Jeff King wrote:
On Mon, Feb 11, 2013 at 12:59:55PM -0800, Matt Kraai wrote:
quoted
From: Matt Kraai <redacted>

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?
Yes, Expat 1.1 and 1.2 provide xmlparse.h, whereas 1.95.0 and later
provide expat.h.
quoted
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? Either in the QNX section of the
Makefile, or potentially by an autoconf macro?
I'll submit another patch shortly that does so, defining the variable
in the QNX section of config.mak.uname.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help