From: Guenter Knauf Date: Wed, 20 Oct 2010 11:03:01 +0000 (+0000) Subject: Added header include for getpid() prototype on Win32. X-Git-Tag: 2.3.9~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2768a20d295bbb9aafb7c1893c0883eb9e3a11f9;p=thirdparty%2Fapache%2Fhttpd.git Added header include for getpid() prototype on Win32. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1025496 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/core/mod_watchdog.h b/modules/core/mod_watchdog.h index 8c4cece7f90..2ec5fdda916 100644 --- a/modules/core/mod_watchdog.h +++ b/modules/core/mod_watchdog.h @@ -47,6 +47,9 @@ #if APR_HAVE_UNISTD_H #include /* for getpid() */ #endif +#if APR_HAVE_PROCESS_H +#include /* for getpid() on Win32 */ +#endif #ifdef __cplusplus extern "C" { diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index 6442338eb46..69f372a94e5 100644 --- a/modules/http/byterange_filter.c +++ b/modules/http/byterange_filter.c @@ -53,6 +53,9 @@ #if APR_HAVE_UNISTD_H #include #endif +#if APR_HAVE_PROCESS_H +#include /* for getpid() on Win32 */ +#endif APLOG_USE_MODULE(http); diff --git a/modules/http/chunk_filter.c b/modules/http/chunk_filter.c index 17fbabdb0a7..6d9e72f2153 100644 --- a/modules/http/chunk_filter.c +++ b/modules/http/chunk_filter.c @@ -38,6 +38,10 @@ #include "mod_core.h" +#if APR_HAVE_PROCESS_H +#include /* for getpid() on Win32 */ +#endif + /* * A pointer to this is used to memorize in the filter context that a bad * gateway error bucket had been seen. It is used as an invented unique pointer. diff --git a/server/log.c b/server/log.c index 3fb928ae1d9..4b23d742bfa 100644 --- a/server/log.c +++ b/server/log.c @@ -41,6 +41,9 @@ #if APR_HAVE_UNISTD_H #include #endif +#if APR_HAVE_PROCESS_H +#include /* for getpid() on Win32 */ +#endif #include "ap_config.h" #include "httpd.h" diff --git a/server/util.c b/server/util.c index fb0eff87071..faeda43c50b 100644 --- a/server/util.c +++ b/server/util.c @@ -38,6 +38,9 @@ #if APR_HAVE_UNISTD_H #include #endif +#if APR_HAVE_PROCESS_H +#include /* for getpid() on Win32 */ +#endif #if APR_HAVE_NETDB_H #include /* for gethostbyname() */ #endif