#ifdef AI_ADDRCONFIG since older IPv4-only systems may not define this flag,
[mmh] / uip / ftpsbr.c
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;