From 2768a20d295bbb9aafb7c1893c0883eb9e3a11f9 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Wed, 20 Oct 2010 11:03:01 +0000 Subject: [PATCH] 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 --- modules/core/mod_watchdog.h | 3 +++ modules/http/byterange_filter.c | 3 +++ modules/http/chunk_filter.c | 4 ++++ server/log.c | 3 +++ server/util.c | 3 +++ 5 files changed, 16 insertions(+) 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 /* 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 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 #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 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 /* 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 #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 fb0eff8707..faeda43c50 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 -- 2.40.0