]> granicus.if.org Git - apache/commitdiff
Allow for compile on systems lacking poll.h
authorJim Jagielski <jim@apache.org>
Sun, 8 Sep 2002 14:42:22 +0000 (14:42 +0000)
committerJim Jagielski <jim@apache.org>
Sun, 8 Sep 2002 14:42:22 +0000 (14:42 +0000)
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

server/mpm/experimental/perchild/perchild.c

index a8bbbcb3e23aa1486859a3f347c28db78731118a..55aa7a5d2705b566560a7172f004535d83d0201e 100644 (file)
 #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>