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 | 1a9795b401092199b401843bb74cb05dd3849445 (patch) | |
tree | 15062a32758912100f3102ef0f52fa6a8b1cdf98 /ares_private.h | |
parent | 25d9912b385605e93b7215eec6a9ec790eff6f6e (diff) | |
download | c-ares-1a9795b401092199b401843bb74cb05dd3849445.tar.gz c-ares-1a9795b401092199b401843bb74cb05dd3849445.tar.bz2 c-ares-1a9795b401092199b401843bb74cb05dd3849445.zip |
rearrange to allow internal/private use of ares_writev to any system
that lacks the writev function.
Diffstat (limited to 'ares_private.h')
-rw-r--r-- | ares_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ares_private.h b/ares_private.h index e138cdd..0b4edf9 100644 --- a/ares_private.h +++ b/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 { |