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 1252f3446..92448da77 100644 --- a/channels.c +++ b/channels.c | |||
@@ -2781,7 +2781,11 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost, | |||
2781 | sock = socket(ai->ai_family, ai->ai_socktype, | 2781 | sock = socket(ai->ai_family, ai->ai_socktype, |
2782 | ai->ai_protocol); | 2782 | ai->ai_protocol); |
2783 | if (sock < 0) { | 2783 | if (sock < 0) { |
2784 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { | 2784 | if ((errno != EINVAL) && (errno != EAFNOSUPPORT) |
2785 | #ifdef EPFNOSUPPORT | ||
2786 | && (errno != EPFNOSUPPORT) | ||
2787 | #endif | ||
2788 | ) { | ||
2785 | error("socket: %.100s", strerror(errno)); | 2789 | error("socket: %.100s", strerror(errno)); |
2786 | freeaddrinfo(aitop); | 2790 | freeaddrinfo(aitop); |
2787 | return -1; | 2791 | return -1; |