From 5d15dc10975a65da2406aa14c4fdc665dbb64662 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 11 May 2010 13:07:13 -0400 Subject: [PATCH] fix windows missing inet_ntop missing symbol when built on >= vista but run on < vista --- src/switch_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_utils.c b/src/switch_utils.c index e059d6ca08..842977acf9 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -1331,7 +1331,7 @@ static const char *switch_inet_ntop4(const unsigned char *src, char *dst, size_t return strcpy(dst, tmp); } -#if HAVE_SIN6 || (defined(NTDDI_VERSION) && (NTDDI_VERSION < NTDDI_VISTA)) +#if HAVE_SIN6 || defined(NTDDI_VERSION) /* const char * * inet_ntop6(src, dst, size) * convert IPv6 binary address into presentation (printable) format @@ -1488,7 +1488,7 @@ SWITCH_DECLARE(char *) get_addr6(char *buf, switch_size_t len, struct sockaddr_i *buf = '\0'; if (sa) { -#if defined(NTDDI_VERSION) && (NTDDI_VERSION < NTDDI_VISTA) +#if defined(NTDDI_VERSION) switch_inet_ntop6((unsigned char*)sa, buf, len); #else inet_ntop(AF_INET6, sa, buf, len);