NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
This commit is contained in:
parent
818811a7ac
commit
3360d0c79e
|
@ -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)
|
static int _xcb_open_tcp(char *host, const unsigned short port)
|
||||||
{
|
{
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
struct addrinfo hints = { AI_ADDRCONFIG
|
struct addrinfo hints = { 0
|
||||||
|
#ifdef AI_ADDRCONFIG
|
||||||
|
| AI_ADDRCONFIG
|
||||||
|
#endif
|
||||||
#ifdef AI_NUMERICSERV
|
#ifdef AI_NUMERICSERV
|
||||||
| AI_NUMERICSERV
|
| AI_NUMERICSERV
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue