projects
/
platform
/
upstream
/
libxcb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
818811a
)
NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
author
Jamey Sharp
<jamey@minilop.net>
Fri, 24 Nov 2006 21:24:05 +0000
(13:24 -0800)
committer
Jamey Sharp
<jamey@minilop.net>
Fri, 24 Nov 2006 21:24:05 +0000
(13:24 -0800)
src/xcb_util.c
patch
|
blob
|
history
diff --git
a/src/xcb_util.c
b/src/xcb_util.c
index
bd9f2b5
..
eeee1dd
100644
(file)
--- 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