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