summaryrefslogtreecommitdiff
path: root/inet_net_pton.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-05 20:20:14 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2005-04-05 20:20:14 (GMT)
commit3d90cb252b5afeace167f101ddc18a57337b3429 (patch)
tree2e38714a1b67e7f91bd0542ef2ade5322eb52a84 /inet_net_pton.c
parent39ea2073061c92f1589e17fbe1e0946ab0c3e1ca (diff)
downloadc-ares-3d90cb252b5afeace167f101ddc18a57337b3429.zip
c-ares-3d90cb252b5afeace167f101ddc18a57337b3429.tar.gz
c-ares-3d90cb252b5afeace167f101ddc18a57337b3429.tar.bz2
with these changes, it builds on my win32 cross-compiler
Diffstat (limited to 'inet_net_pton.c')
-rw-r--r--inet_net_pton.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/inet_net_pton.c b/inet_net_pton.c
index b61a16c..2fa1100 100644
--- a/inet_net_pton.c
+++ b/inet_net_pton.c
@@ -19,10 +19,25 @@
#include <sys/types.h>
+
+#if defined(WIN32) && !defined(WATT32)
+#include "nameser.h"
+#else
+
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
+#endif
+
+#endif
#include <ctype.h>
#include <errno.h>