diff options
-rw-r--r-- | modules/core/mod_watchdog.h | 3 | ||||
-rw-r--r-- | modules/http/byterange_filter.c | 3 | ||||
-rw-r--r-- | modules/http/chunk_filter.c | 4 | ||||
-rw-r--r-- | server/log.c | 3 | ||||
-rw-r--r-- | server/util.c | 3 |
5 files changed, 16 insertions, 0 deletions
diff --git a/modules/core/mod_watchdog.h b/modules/core/mod_watchdog.h index 8c4cece7f9..2ec5fdda91 100644 --- a/modules/core/mod_watchdog.h +++ b/modules/core/mod_watchdog.h @@ -47,6 +47,9 @@ #if APR_HAVE_UNISTD_H #include <unistd.h> /* for getpid() */ #endif +#if APR_HAVE_PROCESS_H +#include <process.h> /* for getpid() on Win32 */ +#endif #ifdef __cplusplus extern "C" { diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index 6442338eb4..69f372a94e 100644 --- a/modules/http/byterange_filter.c +++ b/modules/http/byterange_filter.c @@ -53,6 +53,9 @@ #if APR_HAVE_UNISTD_H #include <unistd.h> #endif +#if APR_HAVE_PROCESS_H +#include <process.h> /* for getpid() on Win32 */ +#endif APLOG_USE_MODULE(http); diff --git a/modules/http/chunk_filter.c b/modules/http/chunk_filter.c index 17fbabdb0a..6d9e72f215 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 <process.h> /* 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 3fb928ae1d..4b23d742bf 100644 --- a/server/log.c +++ b/server/log.c @@ -41,6 +41,9 @@ #if APR_HAVE_UNISTD_H #include <unistd.h> #endif +#if APR_HAVE_PROCESS_H +#include <process.h> /* for getpid() on Win32 */ +#endif #include "ap_config.h" #include "httpd.h" diff --git a/server/util.c b/server/util.c index fb0eff8707..faeda43c50 100644 --- a/server/util.c +++ b/server/util.c @@ -38,6 +38,9 @@ #if APR_HAVE_UNISTD_H #include <unistd.h> #endif +#if APR_HAVE_PROCESS_H +#include <process.h> /* for getpid() on Win32 */ +#endif #if APR_HAVE_NETDB_H #include <netdb.h> /* for gethostbyname() */ #endif |