aboutsummaryrefslogtreecommitdiffstats
path: root/include/os/freebsd/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/os/freebsd/linux/compiler.h')
-rw-r--r--include/os/freebsd/linux/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/os/freebsd/linux/compiler.h b/include/os/freebsd/linux/compiler.h
index d76050378e83..05e93efa64d7 100644
--- a/include/os/freebsd/linux/compiler.h
+++ b/include/os/freebsd/linux/compiler.h
@@ -68,7 +68,7 @@
#define noinline __noinline
#define ____cacheline_aligned __aligned(CACHE_LINE_SIZE)
-#ifndef _KERNEL
+#if !defined(_KERNEL) && !defined(_STANDALONE)
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#endif