/*
* 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.
#include <h/mh.h>
#include <h/mime.h>
-#ifdef HAVE_ARPA_FTP_H
-# include <arpa/ftp.h>
-#endif
+#include "h/arpa_ftp.h"
#define v_debug debugsw
#define v_verbose verbosw
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;