]> granicus.if.org Git - apache/commitdiff
httpdunit: fix check.h on Windows
authorJacob Champion <jchampion@apache.org>
Thu, 25 May 2017 21:18:36 +0000 (21:18 +0000)
committerJacob Champion <jchampion@apache.org>
Thu, 25 May 2017 21:18:36 +0000 (21:18 +0000)
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

test/httpdunit.c
test/httpdunit.h

index ac661218c4f03505cc410ad87a5681f307be30d8..1e7582353a66602fdc17ea79699a0844df8ad81f 100644 (file)
@@ -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"
index eddb9569a580c95dc574d9e2f6bb8722ec616be8..2fdee36e657f42fdbd967205c4f6ad9c8d7914ff 100644 (file)
@@ -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"
 
 /*