summaryrefslogtreecommitdiff
path: root/debian/patches/epfnosupport.patch
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
committerColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
commit8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 (patch)
tree2e0d8058bdfc24a60a20c5bcbfd1075ef1048ff3 /debian/patches/epfnosupport.patch
parente44a1fb6e8e59e67e5c8b6e83c0d8566d146aad9 (diff)
Convert to source format 3.0 (quilt).
Diffstat (limited to 'debian/patches/epfnosupport.patch')
-rw-r--r--debian/patches/epfnosupport.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/epfnosupport.patch b/debian/patches/epfnosupport.patch
new file mode 100644
index 000000000..aceb71ff8
--- /dev/null
+++ b/debian/patches/epfnosupport.patch
@@ -0,0 +1,17 @@
1Index: b/channels.c
2===================================================================
3--- a/channels.c
4+++ b/channels.c
5@@ -3098,7 +3098,11 @@
6 sock = socket(ai->ai_family, ai->ai_socktype,
7 ai->ai_protocol);
8 if (sock < 0) {
9- if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) {
10+ if ((errno != EINVAL) && (errno != EAFNOSUPPORT)
11+#ifdef EPFNOSUPPORT
12+ && (errno != EPFNOSUPPORT)
13+#endif
14+ ) {
15 error("socket: %.100s", strerror(errno));
16 freeaddrinfo(aitop);
17 return -1;