From a9ec148ec8b36acbf9184708ebbcc2d9f40adb31 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 14 Jun 2009 10:41:10 +0000 Subject: Merge and extend Redhat's AI_ADDRCONFIG patch. svn path=/branches/BRANCH_6-3/; revision=5357 --- socket.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 51c15529..474928d0 100644 --- a/socket.c +++ b/socket.c @@ -276,6 +276,9 @@ int SockOpen(const char *host, const char *service, memset(&req, 0, sizeof(struct addrinfo)); req.ai_socktype = SOCK_STREAM; +#ifdef AI_ADDRCONFIG + req.ai_flags = AI_ADDRCONFIG; +#endif i = fm_getaddrinfo(host, service, &req, ai0); if (i) { -- cgit v1.2.3