summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2002-09-08 16:42:22 +0200
committerJim Jagielski <jim@apache.org>2002-09-08 16:42:22 +0200
commitbe41a50b8d9df98abbecf5304d112098f4c0eb65 (patch)
treefdb9ed138bf83ebc744ea4db0829199d468d00d1 /server
parentAdd the missing "Source File" heading. (diff)
downloadapache2-be41a50b8d9df98abbecf5304d112098f4c0eb65.tar.xz
apache2-be41a50b8d9df98abbecf5304d112098f4c0eb65.zip
Allow for compile on systems lacking poll.h
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96714 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/mpm/experimental/perchild/perchild.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c
index a8bbbcb3e2..55aa7a5d27 100644
--- a/server/mpm/experimental/perchild/perchild.c
+++ b/server/mpm/experimental/perchild/perchild.c
@@ -97,8 +97,14 @@
#include "util_filter.h"
#include "apr_poll.h"
-/* ### should be APR-ized */
+#ifdef HAVE_POLL_H
#include <poll.h>
+#endif
+#ifdef HAVE_SYS_POLL_H
+#include <sys/poll.h>
+#endif
+
+/* ### should be APR-ized */
#include <grp.h>
#include <pwd.h>
#include <sys/stat.h>