From 8cf1d92e52d3feac4ed32ec733e2c0ed7f384e86 Mon Sep 17 00:00:00 2001 From: Earl Hood Date: Sat, 6 Feb 2010 07:47:38 +0000 Subject: [PATCH] #ifdef AI_ADDRCONFIG since older IPv4-only systems may not define this flag, causing files that use to not compile. --- sbr/client.c | 2 ++ uip/ftpsbr.c | 2 ++ uip/mhlsbr.c | 2 ++ 3 files changed, 6 insertions(+) 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; -- 1.7.10.4