diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-16 16:42:48 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-16 16:42:48 +0000 |
commit | aa41743ebdb8b348b70bcd886395f0ba5f5fac3a (patch) | |
tree | a88f8147f6aaf3015bcf1f0679ec1c0bdef97d84 /ares/ares_private.h | |
parent | ee5f13cb6b2a6e514dd6b2e129c48b7afd2fefae (diff) |
rearrange to allow internal/private use of ares_writev to any system
that lacks the writev function.
Diffstat (limited to 'ares/ares_private.h')
-rw-r--r-- | ares/ares_private.h | 6 |
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 { |