aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_private.h')
-rw-r--r--ares/ares_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ares/ares_private.h b/ares/ares_private.h
index e138cdd21..0b4edf94e 100644
--- a/ares/ares_private.h
+++ b/ares/ares_private.h
@@ -43,6 +43,7 @@
#undef closesocket
#define closesocket(s) close_s(s)
#define writev(s,v,c) writev_s(s,v,c)
+#define HAVE_WRITEV 1
#endif
#ifdef NETWARE
@@ -109,6 +110,11 @@
# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n)
#endif
+#ifndef HAVE_WRITEV
+# include "ares_writev.h"
+# define writev(s,ptr,cnt) ares_writev(s,ptr,cnt)
+#endif
+
struct query;
struct send_request {