summaryrefslogtreecommitdiff
path: root/nuttx/libc/misc
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-29 14:47:22 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-29 14:47:22 -0600
commit64892e44f2ce2612c77b1b20497fb007adafafb8 (patch)
tree2c917f29727a017b85193ac85959663d504b26e5 /nuttx/libc/misc
parentc48af0eb9c61462f59a7ba63ca7a73e8df146f49 (diff)
downloadpx4-nuttx-64892e44f2ce2612c77b1b20497fb007adafafb8.tar.gz
px4-nuttx-64892e44f2ce2612c77b1b20497fb007adafafb8.tar.bz2
px4-nuttx-64892e44f2ce2612c77b1b20497fb007adafafb8.zip
Rename CONFIG_NUTTX_KERNEL to CONFIG_BUILD_PROTECTED; Partially integrate new CONFIG_BUILD_KERNEL
Diffstat (limited to 'nuttx/libc/misc')
-rw-r--r--nuttx/libc/misc/lib_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/libc/misc/lib_init.c b/nuttx/libc/misc/lib_init.c
index 586699a4a..f4f4e5b6e 100644
--- a/nuttx/libc/misc/lib_init.c
+++ b/nuttx/libc/misc/lib_init.c
@@ -49,7 +49,8 @@
#include "lib_internal.h"
-#if !defined(CONFIG_NUTTX_KERNEL) || defined(__KERNEL__)
+#if !defined(CONFIG_BUILD_PROTECTED) || defined(__KERNEL__) || \
+ defined(CONFIG_BUILD_KERNEL)
/************************************************************
* Pre-processor Definitions
@@ -150,5 +151,5 @@ void lib_releaselist(FAR struct streamlist *list)
#endif
}
-#endif /* !CONFIG_NUTTX_KERNEL || __KERNEL__ */
+#endif /* !CONFIG_BUILD_PROTECTED || __KERNEL__ || CONFIG_BUILD_KERNEL */
#endif /* CONFIG_NFILE_STREAMS */