From d9c6286120d951409a5779f5d99a164bf982ccc1 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 12 Jul 2008 23:25:42 +0000 Subject: [PATCH] - don't use inet_ntop when not present --- ext/ftp/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 9ae77b0f14e..30ca6b920ab 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|")];