From: Bruno Haible Date: Wed, 10 May 2017 22:38:03 +0000 (+0200) Subject: poll: Fix link error on native Windows. X-Git-Tag: v1.0~6173 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=4df5fde5d4f69397f3435c9804da5c88ddc7721e;p=gnulib.git poll: Fix link error on native Windows. * lib/poll.c [WINDOWS_NATIVE]: Undefine recv. --- diff --git a/ChangeLog b/ChangeLog index db28c2ee3f..e2b473b4e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-05-10 Bruno Haible + + poll: Fix link error on native Windows. + * lib/poll.c [WINDOWS_NATIVE]: Undefine recv. + 2017-05-10 Bruno Haible time: Fix missing initialization of HAVE_TIMEZONE_T. diff --git a/lib/poll.c b/lib/poll.c index 9115bcd4a9..c4b2127bf9 100644 --- a/lib/poll.c +++ b/lib/poll.c @@ -76,6 +76,10 @@ #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;