diff options
author | Yang Tse <yangsita@gmail.com> | 2007-11-15 19:44:01 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-11-15 19:44:01 +0000 |
commit | 8627b23715838205403b36858e40807de4a795e1 (patch) | |
tree | 11b095a6176a62d3a913f6350664aa1f3059b1b8 /ares.h | |
parent | d9dd2397714b34248888c72ccc448bae1dd7355a (diff) | |
download | c-ares-8627b23715838205403b36858e40807de4a795e1.tar.gz c-ares-8627b23715838205403b36858e40807de4a795e1.tar.bz2 c-ares-8627b23715838205403b36858e40807de4a795e1.zip |
Needed now that in6_addr is referenced in ares.h
Diffstat (limited to 'ares.h')
-rw-r--r-- | ares.h | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -43,8 +43,12 @@ #include <sys/socket.h> #include <tcp.h> #elif defined(WIN32) - #include <winsock2.h> - #include <windows.h> +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif +# include <windows.h> +# include <winsock2.h> +# include <ws2tcpip.h> #else #include <netinet/in.h> #include <sys/socket.h> @@ -241,6 +245,15 @@ int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf, int ares_expand_string(const unsigned char *encoded, const unsigned char *abuf, int alen, unsigned char **s, long *enclen); +#ifndef s6_addr +struct in6_addr { + union { + unsigned char _S6_u8[16]; + } _S6_un; +}; +#define s6_addr _S6_un._S6_u8 +#endif + struct addrttl { struct in_addr ipaddr; int ttl; |