summaryrefslogtreecommitdiff
path: root/nuttx/mm/umm_zalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/mm/umm_zalloc.c')
-rw-r--r--nuttx/mm/umm_zalloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/mm/umm_zalloc.c b/nuttx/mm/umm_zalloc.c
index 20a37c2e2..06d9d1047 100644
--- a/nuttx/mm/umm_zalloc.c
+++ b/nuttx/mm/umm_zalloc.c
@@ -44,6 +44,8 @@
#include <nuttx/mm.h>
+#if !defined(CONFIG_BUILD_PROTECTED) || !defined(__KERNEL__)
+
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@@ -102,3 +104,5 @@ FAR void *zalloc(size_t size)
return mm_zalloc(USR_HEAP, size);
#endif
}
+
+#endif /* !CONFIG_BUILD_PROTECTED || !__KERNEL__ */