From: Earl Hood Date: Sat, 6 Feb 2010 07:47:38 +0000 (+0000) Subject: #ifdef AI_ADDRCONFIG since older IPv4-only systems may not define this flag, X-Git-Tag: PRE_POSIX_CONVERSION~1 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=8cf1d92e52d3feac4ed32ec733e2c0ed7f384e86;p=mmh #ifdef AI_ADDRCONFIG since older IPv4-only systems may not define this flag, causing files that use to not compile. --- diff --git a/sbr/client.c b/sbr/client.c index a03809e..d3374ad 100644 --- a/sbr/client.c +++ b/sbr/client.c @@ -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; diff --git a/uip/ftpsbr.c b/uip/ftpsbr.c index 2fc3fb7..1d6727f 100644 --- a/uip/ftpsbr.c +++ b/uip/ftpsbr.c @@ -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; diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index a3ef6ba..a386771 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -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;