[Xcb] xlib-xcb
Julien Cristau
jcristau at debian.org
Sat Jul 28 12:58:29 PDT 2007
On Sat, Jul 28, 2007 at 15:09:56 -0400, Bill Cunningham wrote:
> Ok thanks Ian I used that script command. I didn't know it existed. It
> captured stdout and stderr all in a file. I have attached the text.
>
This patch should fix your error:
From 3360d0c79e98cf6b7f30b2d84f117aea0a28595d Mon Sep 17 00:00:00 2001
From: Jamey Sharp <jamey at minilop.net>
Date: Fri, 24 Nov 2006 13:24:05 -0800
Subject: [PATCH] NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
---
src/xcb_util.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
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 *host, const unsigned short port)
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
--
1.5.2.4
Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20070728/18e6cbc7/attachment.pgp
More information about the Xcb
mailing list