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 c68ad6419..530c0d460 100644 --- a/channels.c +++ b/channels.c | |||
@@ -2882,7 +2882,11 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost, | |||
2882 | sock = socket(ai->ai_family, ai->ai_socktype, | 2882 | sock = socket(ai->ai_family, ai->ai_socktype, |
2883 | ai->ai_protocol); | 2883 | ai->ai_protocol); |
2884 | if (sock < 0) { | 2884 | if (sock < 0) { |
2885 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { | 2885 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT) |
2886 | #ifdef EPFNOSUPPORT | ||
2887 | && (errno != EPFNOSUPPORT) | ||
2888 | #endif | ||
2889 | ) { | ||
2886 | error("socket: %.100s", strerror(errno)); | 2890 | error("socket: %.100s", strerror(errno)); |
2887 | freeaddrinfo(aitop); | 2891 | freeaddrinfo(aitop); |
2888 | return -1; | 2892 | return -1; |