From: Julien Blache Date: Fri, 25 Jun 2010 03:39:31 +0000 (+0200) Subject: core: fix build on kFreeBSD X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=17b0ca2bb8b90b3ed0840ccaa6a76bafb79aa2c3;p=catta core: fix build on kFreeBSD --- 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