From 2c346ba0bceb0fdc5199875f6bb092b4d56232ad Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 28 Mar 2016 19:21:44 +0200 Subject: [PATCH] Windows: Handling missing getpid and headers --- expat/lib/xmlparse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 5fdd79a9..c0e8f6e2 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -6,9 +6,14 @@ #include /* memset(), memcpy() */ #include #include /* UINT_MAX */ + +#ifdef COMPILING_FOR_WINDOWS +#define getpid GetCurrentProcessId +#else #include /* gettimeofday() */ #include /* getpid() */ #include /* getpid() */ +#endif #define XML_BUILDING_EXPAT 1 -- 2.40.0