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:
907f8c8
)
Only use AI_NUMERICSERV if defined.
author
Josh Triplett
<josh@freedesktop.org>
Tue, 21 Nov 2006 06:26:40 +0000
(22:26 -0800)
committer
Josh Triplett
<josh@freedesktop.org>
Tue, 21 Nov 2006 06:26:40 +0000
(22:26 -0800)
src/xcb_util.c
patch
|
blob
|
history
diff --git
a/src/xcb_util.c
b/src/xcb_util.c
index
587cb3a
..
ef8300f
100644
(file)
--- a/
src/xcb_util.c
+++ b/
src/xcb_util.c
@@
-176,8
+176,11
@@
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 | AI_NUMERICSERV, AF_UNSPEC,
- SOCK_STREAM };
+ struct addrinfo hints = { AI_ADDRCONFIG
+#ifdef AI_NUMERICSERV
+ | AI_NUMERICSERV
+#endif
+ , AF_UNSPEC, SOCK_STREAM };
char service[6]; /* "65535" with the trailing '\0' */
struct addrinfo *results, *addr;
char *bracket;