#ifdef AI_ADDRCONFIG since older IPv4-only systems may not define this flag,
authorEarl Hood <earl@earlhood.com>
Sat, 6 Feb 2010 07:47:38 +0000 (07:47 +0000)
committerEarl Hood <earl@earlhood.com>
Sat, 6 Feb 2010 07:47:38 +0000 (07:47 +0000)
causing files that use to not compile.

sbr/client.c
uip/ftpsbr.c
uip/mhlsbr.c

index a03809e..d3374ad 100644 (file)
@@ -60,7 +60,9 @@ client (char *args, char *service, char *response, int len_response, int debug)
     }
 
     memset(&hints, 0, sizeof(hints));
+#ifdef AI_ADDRCONFIG
     hints.ai_flags = AI_ADDRCONFIG;
+#endif
     hints.ai_family = PF_UNSPEC;
     hints.ai_socktype = SOCK_STREAM;
 
index 2fc3fb7..1d6727f 100644 (file)
@@ -151,7 +151,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;
 
index a3ef6ba..a386771 100644 (file)
@@ -1544,7 +1544,9 @@ bad_faceproc: ;
        }
 
        memset(&hints, 0, sizeof(hints));
+#ifdef AI_ADDRCONFIG
        hints.ai_flags = AI_ADDRCONFIG;
+#endif
        hints.ai_family = PF_UNSPEC;
        hints.ai_socktype = SOCK_DGRAM;