[Xcb-commit] src

Jamey Sharp jamey at kemper.freedesktop.org
Fri Nov 24 13:24:12 PST 2006


 src/xcb_util.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

New commits:
diff-tree 3360d0c79e98cf6b7f30b2d84f117aea0a28595d (from 818811a7ac660e46d0dca1cbf9e53ad0475af330)
Author: Jamey Sharp <jamey at minilop.net>
Date:   Fri Nov 24 13:24:05 2006 -0800

    NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.

diff --git a/src/xcb_util.c b/src/xcb_util.c
index bd9f2b5..eeee1dd 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -176,7 +176,10 @@ static int _xcb_open_decnet(const char *
 static int _xcb_open_tcp(char *host, const unsigned short port)
 {
     int fd = -1;
-    struct addrinfo hints = { AI_ADDRCONFIG
+    struct addrinfo hints = { 0
+#ifdef AI_ADDRCONFIG
+                              | AI_ADDRCONFIG
+#endif
 #ifdef AI_NUMERICSERV
                               | AI_NUMERICSERV
 #endif


More information about the xcb-commit mailing list