1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-21 07:39:44 +00:00

Needed now that in6_addr is referenced in ares.h

This commit is contained in:
Yang Tse
2007-11-15 19:44:01 +00:00
parent d9dd239771
commit 8627b23715
7 changed files with 33 additions and 16 deletions

17
ares.h
View File

@ -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;