David Lang: if there is no sockaddr_storage, make up our own and use that

This commit is contained in:
Daniel Stenberg
2005-11-10 22:24:49 +00:00
parent a5fcb26ab1
commit 29676f473d
2 changed files with 8 additions and 5 deletions

View File

@@ -777,11 +777,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
/******************************************************************
* IPv6-specific section
*/
#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];