cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] re. ftp.c.diff?r1=1.516&r2=1.517

From: Tor Arntsen <tor_at_spacetec.no>
Date: Tue, 30 Jun 2009 17:18:07 +0200

With the change in http://cool.haxx.se/cvs.cgi/curl/lib/ftp.c.diff?r1=1.516&r2=1.517
there'll be a lot of compile failures unless one also adds the following:

Index: lib/ftp.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/ftp.c,v
retrieving revision 1.517
diff -u -r1.517 ftp.c
--- lib/ftp.c 29 Jun 2009 20:46:01 -0000 1.517
+++ lib/ftp.c 30 Jun 2009 15:15:30 -0000
@@ -1163,9 +1163,11 @@
     case AF_INET:
       port = ntohs(sa4->sin_port);
       break;
+#ifdef ENABLE_IPV6
     case AF_INET6:
       port = ntohs(sa6->sin6_port);
       break;
+#endif
     default:
       break;
     }
Received on 2009-06-30