From 3a46ec557f72d4c46adba8e8b39a6344bb911570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20M=C3=BCller?= Date: Mon, 1 Jul 2019 16:59:45 +0200 Subject: [PATCH] Fix warning for timeval in poll.c on mingw-w64 for x86_64 * lib/poll.c: call windows native select() with windows native timeval --- lib/poll.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/poll.c b/lib/poll.c index 5d9150c13..330144950 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 select() function + from Windows requires */ +# undef timeval + /* Avoid warnings from gcc -Wcast-function-type. */ # define GetProcAddress \ (void *) GetProcAddress -- 2.22.0