summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-05-25 11:32:19 +0000
committerColin Watson <cjwatson@debian.org>2005-05-25 11:32:19 +0000
commitd16ddecb53cb11d0d1230246b18ba52d8a188dda (patch)
treed47446661c5e1957c3e7a9285aac80023ab9b6d3 /channels.c
parent56c421bbfc5e64a335c2bdd0409514d94543d874 (diff)
Restore Hurd X forwarding fix from #102991, lost somewhere along the way.
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;