summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-daemon/main.c')
-rw-r--r--avahi-daemon/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c
index 821820e..12af74c 100644
--- a/avahi-daemon/main.c
+++ b/avahi-daemon/main.c
@@ -971,7 +971,8 @@ static void enforce_rlimits(void) {
set_one_rlimit(RLIMIT_NPROC, config.rlimit_nproc, "RLIMIT_NPROC");
#endif
-#ifdef RLIMIT_MEMLOCK
+ /* the sysctl() call from iface-pfroute.c needs locked memory on FreeBSD */
+#if defined(RLIMIT_MEMLOCK) && !defined(__FreeBSD__)
/* We don't need locked memory */
set_one_rlimit(RLIMIT_MEMLOCK, 0, "RLIMIT_MEMLOCK");
#endif