diff --git a/zephyr/lib/alloc.c b/zephyr/lib/alloc.c index 65584c66a..4f9eb97cd 100644 --- a/zephyr/lib/alloc.c +++ b/zephyr/lib/alloc.c @@ -27,7 +27,7 @@ #include #include -#if !CONFIG_KERNEL_COHERENCE +#if defined(CONFIG_ARCH_XTENSA) && !defined(CONFIG_KERNEL_COHERENCE) #include #endif