From 17b0ca2bb8b90b3ed0840ccaa6a76bafb79aa2c3 Mon Sep 17 00:00:00 2001 From: Julien Blache Date: Fri, 25 Jun 2010 05:39:31 +0200 Subject: [PATCH] core: fix build on kFreeBSD --- avahi-daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c index c4983e5..d270c31 100644 --- a/avahi-daemon/main.c +++ b/avahi-daemon/main.c @@ -1306,7 +1306,7 @@ static void enforce_rlimits(void) { #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 -- 2.39.5