diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2009-06-14 10:41:10 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2009-06-14 10:41:10 +0000 |
commit | a9ec148ec8b36acbf9184708ebbcc2d9f40adb31 (patch) | |
tree | e4f60d14fa6d44eec26ebc20cf36eef617442357 /socket.c | |
parent | 029ef0fa423c2a90c87f09a28454680d4421d306 (diff) | |
download | fetchmail-a9ec148ec8b36acbf9184708ebbcc2d9f40adb31.tar.gz fetchmail-a9ec148ec8b36acbf9184708ebbcc2d9f40adb31.tar.bz2 fetchmail-a9ec148ec8b36acbf9184708ebbcc2d9f40adb31.zip |
Merge and extend Redhat's AI_ADDRCONFIG patch.
svn path=/branches/BRANCH_6-3/; revision=5357
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |