From 6480c63b759eb8add9387220fd8ed630e0563316 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 26 Mar 2010 11:09:44 +1100 Subject: - (djm) [channels.c] Check for EPFNOSUPPORT as a socket() errno; bz#1721 ok dtucker@ --- channels.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'channels.c') diff --git a/channels.c b/channels.c index d8c53a4a8..a55d27817 100644 --- a/channels.c +++ b/channels.c @@ -3252,7 +3252,11 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost, sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); if (sock < 0) { - if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { + if ((errno != EINVAL) && (errno != EAFNOSUPPORT) +#ifdef EPFNOSUPPORT + && (errno != EPFNOSUPPORT) +#endif + ) { error("socket: %.100s", strerror(errno)); freeaddrinfo(aitop); return -1; -- cgit v1.2.3