summaryrefslogtreecommitdiff
path: root/debian/patches/hurd-epfnosupport.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/hurd-epfnosupport.patch')
-rw-r--r--debian/patches/hurd-epfnosupport.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/hurd-epfnosupport.patch b/debian/patches/hurd-epfnosupport.patch
new file mode 100644
index 000000000..ef3f6d993
--- /dev/null
+++ b/debian/patches/hurd-epfnosupport.patch
@@ -0,0 +1,23 @@
1Description: Fix X forwarding on the Hurd
2 socket() may return EPFNOSUPPORT, which != EAFNOSUPPORT on the Hurd.
3Author: Robert Bihlmeyer <robbe@orcus.priv.at>
4Bug-Debian: http://bugs.debian.org/102991
5Last-Update: 2010-02-27
6
7Index: b/channels.c
8===================================================================
9--- a/channels.c
10+++ b/channels.c
11@@ -3098,7 +3098,11 @@
12 sock = socket(ai->ai_family, ai->ai_socktype,
13 ai->ai_protocol);
14 if (sock < 0) {
15- if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) {
16+ if ((errno != EINVAL) && (errno != EAFNOSUPPORT)
17+#ifdef EPFNOSUPPORT
18+ && (errno != EPFNOSUPPORT)
19+#endif
20+ ) {
21 error("socket: %.100s", strerror(errno));
22 freeaddrinfo(aitop);
23 return -1;