diff --git a/mm/umm_heap/umm_globals.c b/mm/umm_heap/umm_globals.c index b73fc829995..b5e6290fe37 100644 --- a/mm/umm_heap/umm_globals.c +++ b/mm/umm_heap/umm_globals.c @@ -32,7 +32,7 @@ * Public Data ****************************************************************************/ -#if defined(CONFIG_ARCH_ADDRENV) && defined(__KERNEL__) +#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL) /* In the kernel build, there a multiple user heaps; one for each task * group. In this build configuration, the user heap structure lies * in a reserved region at the beginning of the .bss/.data address