summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2008-04-05 17:11:21 +0000
committerDan Winship <danw@src.gnome.org>2008-04-05 17:11:21 +0000
commit69bac3aac055b260f3ba0590f05a35298fb33908 (patch)
tree8bf8ad89a89249aef65fe0b204068b6098d2714a
parentb32b17ce04118a7c06ab0cb1d0066cf9cef19e4d (diff)
downloadlibsoup-69bac3aac055b260f3ba0590f05a35298fb33908.tar.gz
fix test for AI_ADDRCONFIG. Noticed while looking at #526321.
* libsoup/soup-dns.c (resolve_address): fix test for AI_ADDRCONFIG. Noticed while looking at #526321. svn path=/trunk/; revision=1125
-rw-r--r--ChangeLog5
-rw-r--r--libsoup/soup-dns.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8889c76d..5f086e8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-04-05 Dan Winship <danw@gnome.org>
+ * libsoup/soup-dns.c (resolve_address): fix test for
+ AI_ADDRCONFIG. Noticed while looking at #526321.
+
+2008-04-05 Dan Winship <danw@gnome.org>
+
* libsoup/soup-socket.c (soup_socket_class_init)
(soup_socket_write): globally ignore SIGPIPE rather than only
doing it around socket write calls, since with SSL even socket
diff --git a/libsoup/soup-dns.c b/libsoup/soup-dns.c
index de0d4690..f3c77499 100644
--- a/libsoup/soup-dns.c
+++ b/libsoup/soup-dns.c
@@ -312,7 +312,7 @@ resolve_address (SoupDNSCacheEntry *entry)
int retval;
memset (&hints, 0, sizeof (struct addrinfo));
-# ifdef HAVE_AI_ADDRCONFIG
+# ifdef AI_ADDRCONFIG
hints.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;
# else
hints.ai_flags = AI_CANONNAME;