From d40db5e23197dcd105fa3c0dc6633b51af3c08d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hannes=20M=C3=BCller?= Date: Mon, 1 Jul 2019 16:59:45 +0200 Subject: [PATCH] poll: Fix type of timeout pointer passed to select() on mingw x86_64. * lib/poll.c: Call Windows native select() with Windows native timeval. --- ChangeLog | 5 +++++ lib/poll.c | 4 ++++ 2 files changed, 9 insertions(+) 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 -- 2.39.5