]> Savannah Git Hosting - gnulib.git/commitdiff
poll: Fix link error on native Windows.
authorBruno Haible <bruno@clisp.org>
Wed, 10 May 2017 22:38:03 +0000 (00:38 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 May 2017 22:38:03 +0000 (00:38 +0200)
* lib/poll.c [WINDOWS_NATIVE]: Undefine recv.

ChangeLog
lib/poll.c

index db28c2ee3fef2efe4bf50c1d9248deaa88b1c378..e2b473b4e9163aeb827a084f7746c3f3a4ff0f2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-10 Bruno Haible  <bruno@clisp.org>
+
+       poll: Fix link error on native Windows.
+       * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
+
 2017-05-10 Bruno Haible  <bruno@clisp.org>
 
        time: Fix missing initialization of HAVE_TIMEZONE_T.
index 9115bcd4a9ea39933025f14f7b90fba6c9fc5f66..c4b2127bf999b02ecd0a846eb2ad394f907b0f24 100644 (file)
 
 #ifdef WINDOWS_NATIVE
 
+/* Here we need the recv() function from Windows, that takes a SOCKET as
+   first argument, not any possible gnulib override.  */
+# undef recv
+
 static BOOL IsConsoleHandle (HANDLE h)
 {
   DWORD mode;