summaryrefslogtreecommitdiffstats
path: root/avahi-daemon
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2005-11-13 17:18:35 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2005-11-13 17:18:35 +0000
commitcb74a64d630a10818d2ff88ffdeda8a77a3622b8 (patch)
tree0215409a59f1fe7353ecc291c9bdcc04d5a7dec4 /avahi-daemon
parent53ab0a33e26d8dbeeaba8555eeb486abfd6bbb26 (diff)
* fixed a problem on FreeBSD where sysctl needs locked memory
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@956 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-daemon')
-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