summaryrefslogtreecommitdiff
path: root/debian/patches/epfnosupport.patch
blob: aceb71ff8c58daf69a6a8535b41cbf4c126cc3af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;