diff options
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/channels.c b/channels.c index 69c99c9b2..c293eadf1 100644 --- a/channels.c +++ b/channels.c | |||
@@ -3004,7 +3004,11 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost, | |||
3004 | sock = socket(ai->ai_family, ai->ai_socktype, | 3004 | sock = socket(ai->ai_family, ai->ai_socktype, |
3005 | ai->ai_protocol); | 3005 | ai->ai_protocol); |
3006 | if (sock < 0) { | 3006 | if (sock < 0) { |
3007 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { | 3007 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT) |
3008 | #ifdef EPFNOSUPPORT | ||
3009 | && (errno != EPFNOSUPPORT) | ||
3010 | #endif | ||
3011 | ) { | ||
3008 | error("socket: %.100s", strerror(errno)); | 3012 | error("socket: %.100s", strerror(errno)); |
3009 | freeaddrinfo(aitop); | 3013 | freeaddrinfo(aitop); |
3010 | return -1; | 3014 | return -1; |