]> granicus.if.org Git - libevent/commitdiff
Never test for select() on windows
authorTrond Norbye <trond.norbye@gmail.com>
Tue, 23 Mar 2010 17:27:10 +0000 (13:27 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 23 Mar 2010 17:27:10 +0000 (13:27 -0400)
On 64-bit windows, configure actually _finds_ select when it tests for
it, and due to the ordering of the io implementations in event.c it is
chosen over the win32select implementation.

This modification skips the test for select on win32 (we don't want
that anyway, because Windows has its own), causing my windows box to
get the win32select implementation.

(edited by Nick)

configure.in

index 269f6cdc2adeab5c14f1c70851572710a587c175..861997b446fd45e3dd860a3041207efbaf0ce4aa 100644 (file)
@@ -258,9 +258,11 @@ yes
 
 needsignal=no
 haveselect=no
-AC_CHECK_FUNCS(select, [haveselect=yes], )
-if test "x$haveselect" = "xyes" ; then
-       needsignal=yes
+if test x$bwin32 != xtrue; then
+    AC_CHECK_FUNCS(select, [haveselect=yes], )
+    if test "x$haveselect" = "xyes" ; then
+       needsignal=yes
+    fi
 fi
 AM_CONDITIONAL(SELECT_BACKEND, [test "x$haveselect" = "xyes"])