Code

resolve.c: Only include netdb.h when not on WIN32
authorAvuton Olrich <avuton@gmail.com>
Sun, 23 Oct 2011 01:10:34 +0000 (18:10 -0700)
committerAvuton Olrich <avuton@gmail.com>
Sun, 23 Oct 2011 01:11:22 +0000 (18:11 -0700)
src/resolver.c

index 6898bedda9f96f2989e2d9fac9db724b48be6954..6363bc8ea15b0b31500cd9c7004a8e591e68f2cf 100644 (file)
@@ -33,7 +33,6 @@
 #include "config.h"
 #include "resolver.h"
 
-#include <netdb.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -42,6 +41,7 @@
 #  include <ws2tcpip.h>
 #  include <winsock.h>
 #else
+#  include <netdb.h>
 #  include <netinet/in.h>
 #  include <arpa/inet.h>
 #  include <sys/socket.h>