summaryrefslogtreecommitdiff
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
commitc43edebb7063f9729dc6aa64b0cf0aa1dfe6011c (patch)
treee8d3cedbca9b23b72de5aa52c890ec9167a960ff
parentbfc7b16712dc43588d6253f2c378811a065f079c (diff)
downloadc-ares-c43edebb7063f9729dc6aa64b0cf0aa1dfe6011c.tar.gz
c-ares-c43edebb7063f9729dc6aa64b0cf0aa1dfe6011c.tar.bz2
c-ares-c43edebb7063f9729dc6aa64b0cf0aa1dfe6011c.zip
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.
-rw-r--r--ares.h5
-rw-r--r--nameser.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/ares.h b/ares.h
index 695f8aa..7f76112 100644
--- a/ares.h
+++ b/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/nameser.h b/nameser.h
index 0ccbfd1..7127c26 100644
--- a/nameser.h
+++ b/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>