diff options
author | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-11-13 17:18:35 +0000 |
---|---|---|
committer | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-11-13 17:18:35 +0000 |
commit | cb74a64d630a10818d2ff88ffdeda8a77a3622b8 (patch) | |
tree | 0215409a59f1fe7353ecc291c9bdcc04d5a7dec4 /avahi-daemon/main.c | |
parent | 53ab0a33e26d8dbeeaba8555eeb486abfd6bbb26 (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/main.c')
-rw-r--r-- | avahi-daemon/main.c | 3 |
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 |