severity 564607 important
tag 564607 + patch
thanks
Hi,
The attached one-liner fixes avahi-daemon on GNU/kFreeBSD. It's totally
unusable without the patch, as the network interface enumeration fails
entirely, so the daemon ends up running with 0 network interfaces to
work on.
This should be sent upstream and applied ASAP.
Thanks,
JB.
--
Julien BLACHE <[email protected]> | Debian, because code matters more
Debian & GNU/Linux Developer | <http://www.debian.org>
Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
--- avahi-0.6.25.orig/avahi-daemon/main.c
+++ avahi-0.6.25/avahi-daemon/main.c
@@ -1307,7 +1307,7 @@
#endif
/* the sysctl() call from iface-pfroute.c needs locked memory on FreeBSD */
-#if defined(RLIMIT_MEMLOCK) && !defined(__FreeBSD__)
+#if defined(RLIMIT_MEMLOCK) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
/* We don't need locked memory */
set_one_rlimit(RLIMIT_MEMLOCK, 0, "RLIMIT_MEMLOCK");
#endif