diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -777,9 +777,12 @@ static CURLcode ftp_state_use_port(struct connectdata *conn, /****************************************************************** * IPv6-specific section */ - - struct addrinfo *res, *ai; +#ifdef HAVE_STRUCT_SOCKADDR_STORAGE struct sockaddr_storage ss; +#else + char ss[256]; /* this should be big enough to fit a lot */ +#endif + struct addrinfo *res, *ai; socklen_t sslen; char hbuf[NI_MAXHOST]; struct sockaddr *sa=(struct sockaddr *)&ss; |