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 8c7b2b369..707b57d86 100644 --- a/channels.c +++ b/channels.c | |||
@@ -2687,7 +2687,11 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost, | |||
2687 | sock = socket(ai->ai_family, ai->ai_socktype, | 2687 | sock = socket(ai->ai_family, ai->ai_socktype, |
2688 | ai->ai_protocol); | 2688 | ai->ai_protocol); |
2689 | if (sock < 0) { | 2689 | if (sock < 0) { |
2690 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { | 2690 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT) |
2691 | #ifdef EPFNOSUPPORT | ||
2692 | && (errno != EPFNOSUPPORT) | ||
2693 | #endif | ||
2694 | ) { | ||
2691 | error("socket: %.100s", strerror(errno)); | 2695 | error("socket: %.100s", strerror(errno)); |
2692 | freeaddrinfo(aitop); | 2696 | freeaddrinfo(aitop); |
2693 | return -1; | 2697 | return -1; |