From 90b487369a5cd3fb74bf1d2f324ae67c222c4c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Wed, 8 Mar 2017 13:00:54 +0100 Subject: [PATCH] Include for Windows Reported-by: Gisle Vanem --- src/mswindows.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mswindows.h b/src/mswindows.h index 09d7f8c3..1bc2e217 100644 --- a/src/mswindows.h +++ b/src/mswindows.h @@ -57,6 +57,9 @@ as that of the covered work. */ /* Declares getpid(). */ #include +/* Declares inet_ntop() and inet_pton(). */ +#include + /* We have strcasecmp and strncasecmp, just under different names. */ #ifndef HAVE_STRCASECMP # define strcasecmp stricmp @@ -85,11 +88,6 @@ typedef __int64 wgint; #define PATH_SEPARATOR '\\' -/* Additional declarations needed for IPv6: */ -#ifdef ENABLE_IPV6 -const char *inet_ntop (int, const void *, char *, socklen_t); -#endif - /* ioctl needed by set_windows_fd_as_blocking_socket() */ #include