summaryrefslogtreecommitdiff
path: root/debian/patches/hurd-epfnosupport.patch
blob: b8ae070f75c8f355c853f0d73198e27db48c0b98 (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
@@ -3098,7 +3098,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;