summaryrefslogtreecommitdiff
path: root/net/avahi/patches/patch-af
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-11-18 13:56:05 +0000
committerwiz <wiz@pkgsrc.org>2010-11-18 13:56:05 +0000
commitb42a7402b8fb2052526efe8eeced630be15ca85b (patch)
tree0a50290e84fad40dc84b7ce97c48017a9a860eb1 /net/avahi/patches/patch-af
parent653416ded8f7e0aee2c16a7dbe5a48462e81d60b (diff)
downloadpkgsrc-b42a7402b8fb2052526efe8eeced630be15ca85b.tar.gz
Add patch from PR 43815 to fix build on some Linuces.
Diffstat (limited to 'net/avahi/patches/patch-af')
-rw-r--r--net/avahi/patches/patch-af31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/avahi/patches/patch-af b/net/avahi/patches/patch-af
new file mode 100644
index 00000000000..2a9d6580106
--- /dev/null
+++ b/net/avahi/patches/patch-af
@@ -0,0 +1,31 @@
+$NetBSD: patch-af,v 1.3 2010/11/18 13:56:05 wiz Exp $
+
+PR 43815:
+net/avahi fails on my Linux system:
+
+ ...
+ CC avahi_daemon-sd-daemon.o
+ sd-daemon.c: In function 'sd_notify':
+ sd-daemon.c:356: error: 'SOCK_CLOEXEC' undeclared (first use in this function)
+ sd-daemon.c:356: error: (Each undeclared identifier is reported only once
+ sd-daemon.c:356: error: for each function it appears in.)
+ gmake[2]: *** [avahi_daemon-sd-daemon.o] Error 1
+
+This is because my glibc and Kernel is not modern enough for this
+version of avahi.
+
+http://avahi.org/ticket/316
+
+--- avahi-daemon/sd-daemon.c.orig 2010-07-13 00:45:20.000000000 +0000
++++ avahi-daemon/sd-daemon.c
+@@ -41,6 +41,10 @@
+ #include <stdarg.h>
+ #include <stdio.h>
+
++#if !defined(SOCK_CLOEXEC) && !defined(DISABLE_SYSTEMD)
++#define DISABLE_SYSTEMD 1
++#endif
++
+ #include "sd-daemon.h"
+
+ int sd_listen_fds(int unset_environment) {