]> git.meshlink.io Git - catta/commitdiff
core: fix build on kFreeBSD
authorJulien Blache <jblache@debian.org>
Fri, 25 Jun 2010 03:39:31 +0000 (05:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 25 Jun 2010 03:39:31 +0000 (05:39 +0200)
avahi-daemon/main.c

index c4983e55f89f9c1a6fbedb10e38776768d6c8eda..d270c318b6ffc9841de3ffa576a7fc1abe86d8e0 100644 (file)
@@ -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