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 --- driver.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 4a2e3233..4a98442d 100644 --- a/driver.c +++ b/driver.c @@ -1010,6 +1010,9 @@ static int do_session( hints.ai_socktype = SOCK_STREAM; hints.ai_family = AF_UNSPEC; hints.ai_flags = AI_CANONNAME; +#ifdef AI_ADDRCONFIG + hints.ai_flags |= AI_ADDRCONFIG; +#endif error = fm_getaddrinfo(ctl->server.queryname, NULL, &hints, &res); if (error) -- cgit v1.2.3