summaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-19 00:15:04 +0000
committerYang Tse <yangsita@gmail.com>2005-12-19 00:15:04 +0000
commite6b98d315254788e8fabceba840da3f6dfd6fbd5 (patch)
tree03b5d8c5aeb700e7acbdb5914c51b6a05fb23c32 /ares
parent5fd8dd2dcef3579522f86012305e8e31ea5d1247 (diff)
downloadcurl-e6b98d315254788e8fabceba840da3f6dfd6fbd5.tar.gz
Undo previous change. This header file belongs to the public
interface and the change could break the compilation of thrid party apps which link against this library.
Diffstat (limited to 'ares')
-rw-r--r--ares/ares.h5
-rw-r--r--ares/nameser.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/ares/ares.h b/ares/ares.h
index 695f8aafb..7f76112f7 100644
--- a/ares/ares.h
+++ b/ares/ares.h
@@ -31,7 +31,10 @@
#include <netinet/in.h>
#include <sys/socket.h>
#include <tcp.h>
-#elif !defined(WIN32)
+#elif defined(WIN32)
+ #include <winsock2.h>
+ #include <windows.h>
+#else
#include <netinet/in.h>
#include <sys/socket.h>
#endif
diff --git a/ares/nameser.h b/ares/nameser.h
index 0ccbfd1c0..7127c2640 100644
--- a/ares/nameser.h
+++ b/ares/nameser.h
@@ -7,6 +7,7 @@
port build */
#ifndef NETWARE
+#include <windows.h>
#include <process.h> /* for the _getpid() proto */
#endif /* !NETWARE */
#include <sys/types.h>