From a31ddd363bb125e852b57a715200b8f276c731fb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 2 May 2005 11:56:15 +0000 Subject: Now configure checks for struct sockaddr_storage and the ftp code tries to survive without it if not found. AIX 4.3 targetted adjustment. --- lib/ftp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ftp.c b/lib/ftp.c index a01c3d8e7..70be8692b 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -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; -- cgit v1.2.3