diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-03 11:43:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-03 11:43:23 -0600 |
commit | 021cf46544be7eeb7900630cea0ee6ad768ba233 (patch) | |
tree | ed79ec918407fb50623e3423f14823fbdb55af14 /nuttx/mm/umm_sem.c | |
parent | 04a080ef2aaa4353e21ba5e767b5b304fdbf5365 (diff) | |
download | px4-nuttx-021cf46544be7eeb7900630cea0ee6ad768ba233.tar.gz px4-nuttx-021cf46544be7eeb7900630cea0ee6ad768ba233.tar.bz2 px4-nuttx-021cf46544be7eeb7900630cea0ee6ad768ba233.zip |
I love/hate conditional compilation
Diffstat (limited to 'nuttx/mm/umm_sem.c')
-rw-r--r-- | nuttx/mm/umm_sem.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <nuttx/mm.h> +#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__ */ |