* tests/test-getaddrinfo.c: Include sockets.h.
(main): Invoke gl_sockets_startup.
* modules/getaddrinfo-tests (Depends-on): Add sockets.
+2019-07-02 Bruno Haible <bruno@clisp.org>
+
+ getaddrinfo tests: Fix test failure on MSVC.
+ * tests/test-getaddrinfo.c: Include sockets.h.
+ (main): Invoke gl_sockets_startup.
+ * modules/getaddrinfo-tests (Depends-on): Add sockets.
+
2019-07-01 Hannes Müller <h.c.f.mueller@gmx.de>
poll: Fix type of timeout pointer passed to select() on mingw x86_64.
tests/test-getaddrinfo.c
Depends-on:
+sockets
inet_ntop
strerror
#include <stdio.h>
#include <string.h>
+#include "sockets.h"
+
/* Whether to print debugging messages. */
#define ENABLE_DEBUGGING 0
int main (void)
{
+ (void) gl_sockets_startup (SOCKETS_1_1);
+
return simple (HOST1, SERV1)
+ simple (HOST2, SERV2)
+ simple (HOST3, SERV3)