summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-06 00:00:31 +0000
committerWez Furlong <wez@php.net>2003-12-06 00:00:31 +0000
commitdbb152b96af8fe8e27f2846f558459cdce3326aa (patch)
treecd725cffd77a9593700986624cdd95bfc8c3d991 /ext/ftp
parent190d8e85b53437c3675e55b70a4409a22d531d42 (diff)
downloadphp-git-dbb152b96af8fe8e27f2846f558459cdce3326aa.tar.gz
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.
Diffstat (limited to 'ext/ftp')
-rw-r--r--ext/ftp/ftp.c4
1 files changed, 2 insertions, 2 deletions
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|")];