From: Hannes Müller Date: Mon, 1 Jul 2019 14:59:45 +0000 (+0200) Subject: poll: Fix type of timeout pointer passed to select() on mingw x86_64. X-Git-Tag: v1.0~4808 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d40db5e23197dcd105fa3c0dc6633b51af3c08d9;p=gnulib.git poll: Fix type of timeout pointer passed to select() on mingw x86_64. * lib/poll.c: Call Windows native select() with Windows native timeval. --- diff --git a/ChangeLog b/ChangeLog index 8e94611dba..f9b0866649 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-07-01 Hannes Müller + + poll: Fix type of timeout pointer passed to select() on mingw x86_64. + * lib/poll.c: Call Windows native select() with Windows native timeval. + 2019-06-30 Bruno Haible argmatch: Fix compilation errors. diff --git a/lib/poll.c b/lib/poll.c index 5d9150c13a..2b590bd421 100644 --- a/lib/poll.c +++ b/lib/poll.c @@ -91,6 +91,10 @@ of SOCKETs, not bit masks of FDs. */ # undef select +/* Here we need timeval from Windows since this is what the select() function + from Windows requires. */ +# undef timeval + /* Avoid warnings from gcc -Wcast-function-type. */ # define GetProcAddress \ (void *) GetProcAddress