From 081fd8d093887b0cc5055d8a191ae2c26274846b Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 11 Feb 2013 14:03:45 -0800 Subject: Allow building with xmlparse.h expat 1.1 and 1.2 provide xmlparse.h instead of expat.h. Include the former on systems that define the EXPAT_NEEDS_XMLPARSE_H variable and define that variable on QNX systems, which ship with expat 1.1. Signed-off-by: Matt Kraai Signed-off-by: Junio C Hamano --- http-push.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'http-push.c') diff --git a/http-push.c b/http-push.c index 3e72e84e84..bd66f6ab6e 100644 --- a/http-push.c +++ b/http-push.c @@ -11,7 +11,11 @@ #include "list-objects.h" #include "sigchain.h" +#ifdef EXPAT_NEEDS_XMLPARSE_H +#include +#else #include +#endif static const char http_push_usage[] = "git http-push [--all] [--dry-run] [--force] [--verbose] [...]\n"; -- cgit v1.2.1