Dax Kelson wrote:

> Maybe a Squid hacker can adjust the configure script to use poll() by
> default if it is a linux box with kernel 2.2.x.

How about this? (you need to run autoconf after applying).

--
Henrik Nordstrom
Spare time Squid hacker
Index: squid/configure.in
diff -u squid/configure.in:1.1.1.28 squid/configure.in:1.1.1.28.2.1
--- squid/configure.in:1.1.1.28 Sun Jan 24 09:33:19 1999
+++ squid/configure.in  Fri Jan 29 23:53:05 1999
@@ -865,8 +865,11 @@
                        # Henrik Nordstrom ([EMAIL PROTECTED]) 19980817
                        # poll is problematic on Linux.  We disable it
                        # by default until Linux gets it right.
-                       echo "disabling poll for $host..."
-                       ac_cv_func_poll='no'
+                       rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`
+                       if test $rev -lt 002002; then
+                           echo "disabling poll for $host < 2.2..."
+                           ac_cv_func_poll='no'
+                       fi
                        ;;
                [powerpc-ibm-aix4.1.*])
                        # Mike Laster ([EMAIL PROTECTED]) 19981021

Reply via email to