]> diplodocus.org Git - nmh/blobdiff - uip/ftpsbr.c
Import non-Posix <arpa/ftp.h> for uip/ftpsbr.c.
[nmh] / uip / ftpsbr.c
index 2fc3fb7d57089a320b89eb6c49b675a08358ebc5..b2c3c421131f16d63f154802e3f0c7ccdbbf2d14 100644 (file)
@@ -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,7 +9,11 @@
 #include <h/mh.h>
 #include <h/mime.h>
 
-#ifdef HAVE_ARPA_FTP_H
+#ifdef notdef_lyndon_posix
+/*
+ * Does this get included indirectly?  Let's find out.  It's not
+ * part of Posix.  Mail lyndon@orthanc.ca if this breaks your build.
+ */
 # include <arpa/ftp.h>
 #endif
 
@@ -151,7 +153,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;