]> granicus.if.org Git - php/commitdiff
- MFH: don't use inet_ntop when not present
authorPierre Joye <pajoye@php.net>
Sat, 12 Jul 2008 23:26:02 +0000 (23:26 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 12 Jul 2008 23:26:02 +0000 (23:26 +0000)
ext/ftp/ftp.c

index 8b78cb60e6ba8379424aeae239b383db2efc6f22..842ca7cdc462db456a31588ab7fabce8327b5bfc 100644 (file)
@@ -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|")];