summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGuenter Knauf <fuankg@apache.org>2010-10-20 11:03:01 +0000
committerGuenter Knauf <fuankg@apache.org>2010-10-20 11:03:01 +0000
commit2768a20d295bbb9aafb7c1893c0883eb9e3a11f9 (patch)
treecbeeda1646ac18558b3ec99c6e077a9f8f93b7f7 /modules
parent0de2a457c06d0e7600a1e37446ac1e2664712b70 (diff)
downloadhttpd-2768a20d295bbb9aafb7c1893c0883eb9e3a11f9.tar.gz
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
Diffstat (limited to 'modules')
-rw-r--r--modules/core/mod_watchdog.h3
-rw-r--r--modules/http/byterange_filter.c3
-rw-r--r--modules/http/chunk_filter.c4
3 files changed, 10 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.