From: Pierre Joye Date: Sat, 12 Jul 2008 23:26:02 +0000 (+0000) Subject: - MFH: don't use inet_ntop when not present X-Git-Tag: php-5.3.0alpha1~386 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8a7c37c83ddc273b69cc0cb9a24e520a37ab17d;p=php - MFH: don't use inet_ntop when not present --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 8b78cb60e6..842ca7cdc4 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -1437,7 +1437,7 @@ ftp_getdata(ftpbuf_t *ftp TSRMLS_DC) data->listener = fd; -#if HAVE_IPV6 +#if HAVE_IPV6 && HAVE_INET_NTOP if (sa->sa_family == AF_INET6) { /* need to use EPRT */ char eprtarg[INET6_ADDRSTRLEN + sizeof("|x||xxxxx|")];