Loading ares/inet_net_pton.c +15 −0 Original line number Diff line number Diff line Loading @@ -19,10 +19,25 @@ #include <sys/types.h> #if defined(WIN32) && !defined(WATT32) #include "nameser.h" #else #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif #ifdef HAVE_ARPA_NAMESER_H #include <arpa/nameser.h> #endif #ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> #endif #endif #include <ctype.h> #include <errno.h> Loading ares/nameser.h +7 −3 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ #define EINPROGRESS WSAEINPROGRESS #define EWOULDBLOCK WSAEWOULDBLOCK #define EMSGSIZE ERANGE /* FIX: is there a better replacement? */ #define EAFNOSUPPORT ERANGE /* FIX: is there a better replacement? */ /* Structure for scatter/gather I/O. */ struct iovec Loading @@ -37,7 +39,9 @@ int ares_gettimeofday(struct timeval *tv, struct timezone *tz); #endif /* !NETWARE */ #define NS_CMPRSFLGS 0xc0 #define NS_IN6ADDRSZ 16 #define NS_INT16SZ 2 #define NS_INADDRSZ 4 /* Flag bits indicating name compression. */ #define INDIR_MASK NS_CMPRSFLGS Loading Loading
ares/inet_net_pton.c +15 −0 Original line number Diff line number Diff line Loading @@ -19,10 +19,25 @@ #include <sys/types.h> #if defined(WIN32) && !defined(WATT32) #include "nameser.h" #else #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif #ifdef HAVE_ARPA_NAMESER_H #include <arpa/nameser.h> #endif #ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> #endif #endif #include <ctype.h> #include <errno.h> Loading
ares/nameser.h +7 −3 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ #define EINPROGRESS WSAEINPROGRESS #define EWOULDBLOCK WSAEWOULDBLOCK #define EMSGSIZE ERANGE /* FIX: is there a better replacement? */ #define EAFNOSUPPORT ERANGE /* FIX: is there a better replacement? */ /* Structure for scatter/gather I/O. */ struct iovec Loading @@ -37,7 +39,9 @@ int ares_gettimeofday(struct timeval *tv, struct timezone *tz); #endif /* !NETWARE */ #define NS_CMPRSFLGS 0xc0 #define NS_IN6ADDRSZ 16 #define NS_INT16SZ 2 #define NS_INADDRSZ 4 /* Flag bits indicating name compression. */ #define INDIR_MASK NS_CMPRSFLGS Loading