X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fftpsbr.c;h=0ffca352e5ed70f4ac68dc680769b45eaf06b9c5;hb=3865f55b4195bac67932ac3aacbd8f3c53239b62;hp=2fc3fb7d57089a320b89eb6c49b675a08358ebc5;hpb=7b98850d3b8b2453b473fdfb6db52f4aa3fe39b6;p=mmh diff --git a/uip/ftpsbr.c b/uip/ftpsbr.c index 2fc3fb7..0ffca35 100644 --- a/uip/ftpsbr.c +++ b/uip/ftpsbr.c @@ -1,8 +1,6 @@ /* * ftpsbr.c -- simple FTP client library * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -11,9 +9,7 @@ #include #include -#ifdef HAVE_ARPA_FTP_H -# include -#endif +#include "h/arpa_ftp.h" #define v_debug debugsw #define v_verbose verbosw @@ -151,7 +147,9 @@ ftp_trans (char *host, char *user, char *password, char *cwd, char *remote, struct addrinfo hints, *res; memset(&hints, 0, sizeof(hints)); +#ifdef AI_ADDRCONFIG hints.ai_flags = AI_ADDRCONFIG; +#endif hints.ai_family = PF_INET; hints.ai_socktype = SOCK_STREAM;