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

index 9ae77b0f14e722823a38b7098a9c51dd547ba5b4..30ca6b920ab29307f4c47f5294c8987ce3284277 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|")];