Add ws2tcpip.h for getaddrinfo on Windows
[pazpar2-moved-to-github.git] / src / getaddrinfo.c
index a5f6a3a..24ce534 100644 (file)
@@ -34,7 +34,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include <sys/socket.h>
 #endif
 #ifdef WIN32
-#include <winsock.h>
+#include <winsock2.h>
+#include <ws2tcpip.h>
 #endif
 #if HAVE_NETDB_H
 #include <netdb.h>