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 dea60ba24..f0b8aa7d0 100644 --- a/channels.c +++ b/channels.c | |||
@@ -3096,7 +3096,11 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost, | |||
3096 | sock = socket(ai->ai_family, ai->ai_socktype, | 3096 | sock = socket(ai->ai_family, ai->ai_socktype, |
3097 | ai->ai_protocol); | 3097 | ai->ai_protocol); |
3098 | if (sock < 0) { | 3098 | if (sock < 0) { |
3099 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { | 3099 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT) |
3100 | #ifdef EPFNOSUPPORT | ||
3101 | && (errno != EPFNOSUPPORT) | ||
3102 | #endif | ||
3103 | ) { | ||
3100 | error("socket: %.100s", strerror(errno)); | 3104 | error("socket: %.100s", strerror(errno)); |
3101 | freeaddrinfo(aitop); | 3105 | freeaddrinfo(aitop); |
3102 | return -1; | 3106 | return -1; |