From: Jacob Champion Date: Thu, 25 May 2017 21:18:36 +0000 (+0000) Subject: httpdunit: fix check.h on Windows X-Git-Tag: 2.5.0-alpha~367^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=589866e7e5e09513a6ef9617c1758623a1de8ddc;p=thirdparty%2Fapache%2Fhttpd.git httpdunit: fix check.h on Windows Check seems to have trouble with type definitions when using a CMake+Windows toolchain. Include apr.h before check.h to ensure pid_t exists. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796205 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/httpdunit.c b/test/httpdunit.c index ac661218c4f..1e7582353a6 100644 --- a/test/httpdunit.c +++ b/test/httpdunit.c @@ -14,6 +14,7 @@ * limitations under the License. */ +#include "apr.h" /* for pid_t on Windows, needed by Check */ #include "check.h" #include "apr_general.h" diff --git a/test/httpdunit.h b/test/httpdunit.h index eddb9569a58..2fdee36e657 100644 --- a/test/httpdunit.h +++ b/test/httpdunit.h @@ -33,6 +33,7 @@ * using a similar generate-stub-and-include process. */ +#include "apr.h" /* for pid_t on Windows, needed by Check */ #include "check.h" /*