1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Silent compiler warning under Windows.

This commit is contained in:
Giuseppe Scrivano 2011-04-04 12:52:35 +02:00
parent 1cba1a7659
commit 99e9291da3
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2011-04-04 Giuseppe Scrivano <gscrivano@gnu.org> 2011-04-04 Giuseppe Scrivano <gscrivano@gnu.org>
* host.c [WINDOWS]: Include <winsock2.h> and <ws2tcpip.h>.
Suggested by: Ray Satiro <raysatiro@yahoo.com>.
* Makefile.am (LIBS): Remove @LIBSSL@ @W32LIBS@ * Makefile.am (LIBS): Remove @LIBSSL@ @W32LIBS@
2011-04-03 Giuseppe Scrivano <gscrivano@gnu.org> 2011-04-03 Giuseppe Scrivano <gscrivano@gnu.org>

View File

@ -50,6 +50,8 @@ as that of the covered work. */
# endif /* def __VMS [else] */ # endif /* def __VMS [else] */
# define SET_H_ERRNO(err) ((void)(h_errno = (err))) # define SET_H_ERRNO(err) ((void)(h_errno = (err)))
#else /* WINDOWS */ #else /* WINDOWS */
# include <winsock2.h>
# include <ws2tcpip.h>
# define SET_H_ERRNO(err) WSASetLastError (err) # define SET_H_ERRNO(err) WSASetLastError (err)
#endif /* WINDOWS */ #endif /* WINDOWS */