From: William A. Rowe Jr Date: Tue, 31 May 2011 20:55:02 +0000 (+0000) Subject: solve getpid() process.h function order X-Git-Tag: 2.3.13~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8da0ffbc0285fe144e254ba81f71d5848c4f529;p=thirdparty%2Fapache%2Fhttpd.git solve getpid() process.h function order git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1129914 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/core/mod_watchdog.c b/modules/core/mod_watchdog.c index 1642ee46902..ff6c77cd9bd 100644 --- a/modules/core/mod_watchdog.c +++ b/modules/core/mod_watchdog.c @@ -17,6 +17,14 @@ /* Watchdog module. */ +#include "apr.h" +#if APR_HAVE_UNISTD_H +#include /* for getpid() */ +#endif +#if APR_HAVE_PROCESS_H +#include /* for getpid() on Win32 */ +#endif + #include "mod_watchdog.h" #include "ap_provider.h" #include "ap_mpm.h" diff --git a/modules/core/mod_watchdog.h b/modules/core/mod_watchdog.h index 2ec5fdda916..43253dea1b0 100644 --- a/modules/core/mod_watchdog.h +++ b/modules/core/mod_watchdog.h @@ -44,13 +44,6 @@ #include "apr_global_mutex.h" #include "apr_thread_mutex.h" -#if APR_HAVE_UNISTD_H -#include /* for getpid() */ -#endif -#if APR_HAVE_PROCESS_H -#include /* for getpid() on Win32 */ -#endif - #ifdef __cplusplus extern "C" { #endif