[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getaddrinfo tests: fix test failure on MSVC
From: |
Bruno Haible |
Subject: |
Re: getaddrinfo tests: fix test failure on MSVC |
Date: |
Wed, 03 Jul 2019 21:50:06 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-151-generic; KDE/5.18.0; x86_64; ; ) |
Hi Gisle,
> I found the same problem with test-select-fd.c:
>
> --- a/tests/test-select-fd.c 2019-01-02 12:05:09
> +++ b/tests/test-select-fd.c 2019-07-03 06:48:11
> @@ -21,6 +21,7 @@
> #include <stdio.h>
> #include <stdlib.h>
> #include <sys/select.h>
> +#include <sockets.h>
>
> int
> main (int argc, char *argv[])
> @@ -44,6 +45,7 @@
> struct timeval timeout;
> int ret;
>
> + gl_sockets_startup (SOCKETS_1_1);
> FD_ZERO (&fds);
> FD_SET (fd, &fds);
> timeout.tv_sec = 0;
This patch does not fix any of the existing test failures
(test-select, test-select-out.sh) for me.
Note that the select() function used by this file is the
gnulib select, not the <winsock2.h> select.
Bruno