summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index 1be213bce..2dea5dfd0 100644
--- a/channels.c
+++ b/channels.c
@@ -2680,7 +2680,11 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
2680 sock = socket(ai->ai_family, ai->ai_socktype, 2680 sock = socket(ai->ai_family, ai->ai_socktype,
2681 ai->ai_protocol); 2681 ai->ai_protocol);
2682 if (sock < 0) { 2682 if (sock < 0) {
2683 if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { 2683 if ((errno != EINVAL) && (errno != EAFNOSUPPORT)
2684#ifdef EPFNOSUPPORT
2685 && (errno != EPFNOSUPPORT)
2686#endif
2687 ) {
2684 error("socket: %.100s", strerror(errno)); 2688 error("socket: %.100s", strerror(errno));
2685 freeaddrinfo(aitop); 2689 freeaddrinfo(aitop);
2686 return -1; 2690 return -1;