From 4028a343d563df2b04c9bbef4287c1bddcb13def Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 22 Oct 2003 18:44:30 +0000 Subject: [w3m-dev 04010] support for deprecated __ss_family * acinclude.m4 (AC_W3M_IPv6): check __ss_family * config.h.in: add HAVE_OLD_SS_FAMILY * ftp.c (ftp_pasv): ifdef HAVE_OLD_SS_FAMILY From: ABE Yuji --- ftp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ftp.c') diff --git a/ftp.c b/ftp.c index 5928d8d..22700f7 100644 --- a/ftp.c +++ b/ftp.c @@ -1,4 +1,4 @@ -/* $Id: ftp.c,v 1.33 2003/10/05 18:52:51 ukai Exp $ */ +/* $Id: ftp.c,v 1.34 2003/10/22 18:44:31 ukai Exp $ */ #include #include #include @@ -196,7 +196,11 @@ ftp_pasv(FTP ftp) if (getpeername(fileno(ftp->wf), (struct sockaddr *)&sockaddr, &sockaddrlen) < 0) return -1; +#ifdef HAVE_OLD_SS_FAMILY + family = sockaddr.__ss_family; +#else family = sockaddr.ss_family; +#endif #else family = AF_INET; #endif -- cgit v1.2.3