summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJacob Champion <jchampion@apache.org>2017-05-25 23:18:36 +0200
committerJacob Champion <jchampion@apache.org>2017-05-25 23:18:36 +0200
commit589866e7e5e09513a6ef9617c1758623a1de8ddc (patch)
treeb64b217d86bd7d42219f819a4b5e6466b9a44321 /test
parenthttpdunit: simplify test case generation (diff)
downloadapache2-589866e7e5e09513a6ef9617c1758623a1de8ddc.tar.xz
apache2-589866e7e5e09513a6ef9617c1758623a1de8ddc.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/httpdunit.c1
-rw-r--r--test/httpdunit.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/httpdunit.c b/test/httpdunit.c
index ac661218c4..1e7582353a 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 eddb9569a5..2fdee36e65 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"
/*