From 021cf46544be7eeb7900630cea0ee6ad768ba233 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 3 Sep 2014 11:43:23 -0600 Subject: I love/hate conditional compilation --- nuttx/mm/umm_sem.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nuttx/mm/umm_sem.c') diff --git a/nuttx/mm/umm_sem.c b/nuttx/mm/umm_sem.c index 8e899994b..baa992ebb 100644 --- a/nuttx/mm/umm_sem.c +++ b/nuttx/mm/umm_sem.c @@ -41,6 +41,8 @@ #include +#if !defined(CONFIG_BUILD_PROTECTED) || !defined(__KERNEL__) + /************************************************************************ * Pre-processor definition ************************************************************************/ @@ -119,3 +121,5 @@ void umm_givesemaphore(void) { mm_givesemaphore(USR_HEAP); } + +#endif /* !CONFIG_BUILD_PROTECTED || !__KERNEL__ */ -- cgit v1.2.3