HAVE_INET_NTOP will only be defined when an IPv6 capable working

inet_ntop function is available.
This commit is contained in:
Yang Tse
2008-09-24 16:43:12 +00:00
parent 9be0422d12
commit a08ee8a0be
4 changed files with 188 additions and 36 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
* without express or implied warranty.
*/
#if defined(HAVE_INET_NTOP) && defined(HAVE_INET_NTOP_IPV6)
#ifdef HAVE_INET_NTOP
#define ares_inet_ntop(w,x,y,z) inet_ntop(w,x,y,z)
#else
const char *ares_inet_ntop(int af, const void *src, char *dst, size_t size);