NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
(cherry picked from commit 3360d0c79e
)
This commit is contained in:
parent
fe12aa7dbf
commit
978e8839cb
|
@ -7,6 +7,8 @@ libxcb (1.0-1) experimental; urgency=low
|
|||
check first started shipping the pkg-config file.
|
||||
* Add Build-Depends on libpthread-stubs0-dev.
|
||||
* Add XS-Vcs-Git field.
|
||||
* Cherry-pick post-1.0 changes from master:
|
||||
* "NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available."
|
||||
|
||||
-- Josh Triplett <josh@freedesktop.org> Fri, 24 Nov 2006 00:51:41 -0800
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue