aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_private.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-01 06:58:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-07-01 06:58:47 +0000
commit097281f45946120240a5864473d9627bc394532b (patch)
tree3c977dbe5621b0b5a15b6dcddf33bb7f73d37c3d /ares/ares_private.h
parent087748c48eef2bf986660b628291dad857faca55 (diff)
Gisle Vanem made this build fine with djgpp and the Watt-32 stack.
Diffstat (limited to 'ares/ares_private.h')
-rw-r--r--ares/ares_private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ares/ares_private.h b/ares/ares_private.h
index 7a755e004..caff53b34 100644
--- a/ares/ares_private.h
+++ b/ares/ares_private.h
@@ -27,6 +27,15 @@
#define closesocket(x) close(x)
#endif
+#ifdef WATT32
+#include <tcp.h>
+#include <sys/ioctl.h>
+#undef closesocket
+#define closesocket(s) close_s(s)
+#define select(n,r,w,x,t) select_s(n,r,w,x,t)
+#define writev(s,v,c) writev_s(s,v,c)
+#endif
+
#define DEFAULT_TIMEOUT 5
#define DEFAULT_TRIES 4
#ifndef INADDR_NONE