From dbb152b96af8fe8e27f2846f558459cdce3326aa Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 6 Dec 2003 00:00:31 +0000 Subject: Detect and enable IPv6 support under win32. The ws2tcpip.h header links to IPv6 functions dynamically and the generated binary will run on win98 and later. --- ext/ftp/ftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/ftp/ftp.c') diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index cc15b579f4..d10e079ab9 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -714,7 +714,7 @@ ftp_pasv(ftpbuf_t *ftp, int pasv) memset(&ftp->pasvaddr, 0, n); sa = (struct sockaddr *) &ftp->pasvaddr; -#ifdef HAVE_IPV6 +#if HAVE_IPV6 if (getpeername(ftp->fd, sa, &n) < 0) { return 0; } @@ -1454,7 +1454,7 @@ ftp_getdata(ftpbuf_t *ftp TSRMLS_DC) data->listener = fd; -#ifdef HAVE_IPV6 +#if HAVE_IPV6 if (sa->sa_family == AF_INET6) { /* need to use EPRT */ char eprtarg[INET6_ADDRSTRLEN + sizeof("|x||xxxxx|")]; -- cgit v1.2.1