diff options
Diffstat (limited to 'nuttx/mm/mm_kernel.c')
-rw-r--r-- | nuttx/mm/mm_kernel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/mm/mm_kernel.c b/nuttx/mm/mm_kernel.c index ee156e889..eb3c7fd7d 100644 --- a/nuttx/mm/mm_kernel.c +++ b/nuttx/mm/mm_kernel.c @@ -43,7 +43,8 @@ #include <nuttx/kmalloc.h> -#if defined(CONFIG_NUTTX_KERNEL) && defined(CONFIG_MM_KERNEL_HEAP) && defined(__KERNEL__) +#if ((defined(CONFIG_BUILD_PROTECTED) && defined(__KERNEL__)) || \ + defined(CONFIG_BUILD_KERNEL)) && defined(CONFIG_MM_KERNEL_HEAP) /************************************************************************ * Pre-processor definition @@ -304,4 +305,4 @@ bool kmm_heapmember(FAR void *mem) } #endif -#endif /* CONFIG_NUTTX_KERNEL && CONFIG_MM_KERNEL_HEAP && __KERNEL__ */ +#endif /* ((CONFIG_BUILD_PROTECTED && __KERNEL__) || CONFIG_BUILD_KERNEL) && CONFIG_MM_KERNEL_HEAP*/ |