summaryrefslogtreecommitdiff
path: root/debian/patches/hurd-epfnosupport.patch
blob: e06b46309ebac0ef38e749665e42ebad518e98b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fix X forwarding on the Hurd
 socket() may return EPFNOSUPPORT, which != EAFNOSUPPORT on the Hurd.
Author: Robert Bihlmeyer <robbe@orcus.priv.at>
Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1721
Bug-Debian: http://bugs.debian.org/102991
Last-Update: 2010-03-01

Index: b/channels.c
===================================================================
--- a/channels.c
+++ b/channels.c
@@ -3252,7 +3252,11 @@
 			sock = socket(ai->ai_family, ai->ai_socktype,
 			    ai->ai_protocol);
 			if (sock < 0) {
-				if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) {
+				if ((errno != EINVAL) && (errno != EAFNOSUPPORT)
+#ifdef EPFNOSUPPORT
+				    && (errno != EPFNOSUPPORT)
+#endif 
+				    ) {
 					error("socket: %.100s", strerror(errno));
 					freeaddrinfo(aitop);
 					return -1;