Add ws2tcpip.h for getaddrinfo on Windows
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 2 Apr 2013 14:03:23 +0000 (16:03 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 2 Apr 2013 14:03:23 +0000 (16:03 +0200)
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>