]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
poll() workaround for linux by Oskar Pearson
authorwessels <>
Fri, 24 Oct 1997 10:55:56 +0000 (10:55 +0000)
committerwessels <>
Fri, 24 Oct 1997 10:55:56 +0000 (10:55 +0000)
src/squid.h

index 23577d6157402a2c73bf325eacb7a8c0eb676a36..780c466f96d996f01137d0e8b8e07e3920078675 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: squid.h,v 1.130 1997/10/16 19:22:40 kostas Exp $
+ * $Id: squid.h,v 1.131 1997/10/24 04:55:56 wessels Exp $
  *
  * AUTHOR: Duane Wessels
  *
 #if HAVE_GETOPT_H
 #include <getopt.h>
 #endif
-#if HAVE_POLL_H
-#include <poll.h>
-#endif
 #if HAVE_ASSERT_H
 #include <assert.h>
 #else
 #define assert(X) ((void)0)
 #endif
 
+/* With linux, poll.h might not be available, even though poll(2) is */
+/* Oskar Pearson <oskar@is.co.za> */
+#if HAVE_POLL
+#if HAVE_POLL_H && defined(_SQUID_LINUX_)
+#include <poll.h>
+#else
+#undef HAVE_POLL
+#endif /* end of Linux workaround */
+#endif /* HAVE_POLL */
+
 #ifdef __STDC__
 #include <stdarg.h>
 #else