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