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