]> Savannah Git Hosting - gnulib.git/commitdiff
poll: Fix confusion between SOCKETs and FDs on native Windows.
authorBruno Haible <bruno@clisp.org>
Thu, 11 May 2017 14:31:25 +0000 (16:31 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 11 May 2017 14:35:54 +0000 (16:35 +0200)
Fix proposed by Daniel P. Berrange <berrange@redhat.com>.

* lib/poll.c [WINDOWS_NATIVE]: Undefine select.

ChangeLog
lib/poll.c

index f5f34cc62c796317cccbee2041de9a9f9bdf9012..a7f9c88f017596277bd166097bfd745b88f5f89f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-05-11 Bruno Haible  <bruno@clisp.org>
+
+       poll: Fix confusion between SOCKETs and FDs on native Windows.
+       Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
+       * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
+
 2017-05-11 Bruno Haible  <bruno@clisp.org>
 
        doc: Clarify doc about socket functions on native Windows.
index c4b2127bf999b02ecd0a846eb2ad394f907b0f24..818a2cdeebf31bc1f12083a0cbb4b7bb7795d0b6 100644 (file)
    first argument, not any possible gnulib override.  */
 # undef recv
 
+/* Here we need the select() function from Windows, because we pass bit masks
+   of SOCKETs, not bit masks of FDs.  */
+# undef select
+
 static BOOL IsConsoleHandle (HANDLE h)
 {
   DWORD mode;