summaryrefslogtreecommitdiff
path: root/nuttx/lib
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-04 21:02:15 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-04 21:02:15 +0000
commitf83c9b840d045664f99114a3c71bbdab5744367c (patch)
tree3602ca8c7183758518ccac50565e03c50a0cbec0 /nuttx/lib
parent07bac0e795ae446d6a2f1e9ab3da5d9f7cdfef0a (diff)
downloadpx4-nuttx-f83c9b840d045664f99114a3c71bbdab5744367c.tar.gz
px4-nuttx-f83c9b840d045664f99114a3c71bbdab5744367c.tar.bz2
px4-nuttx-f83c9b840d045664f99114a3c71bbdab5744367c.zip
Fix a couple of recently introduced build problems
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3463 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r--nuttx/lib/pthread/pthread_attrinit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nuttx/lib/pthread/pthread_attrinit.c b/nuttx/lib/pthread/pthread_attrinit.c
index fc9ee0274..7df73e54b 100644
--- a/nuttx/lib/pthread/pthread_attrinit.c
+++ b/nuttx/lib/pthread/pthread_attrinit.c
@@ -58,6 +58,16 @@
* Global Variables
****************************************************************************/
+/* Default pthread attributes (see included/nuttx/pthread.h). When configured
+ * to build separate kernel- and user-address spaces, this global is
+ * duplicated in each address spaced. This copy can only be shared within
+ * the user address space.
+ */
+
+#if defined(CONFIG_NUTTX_KERNEL) && !defined(__KERNEL__)
+pthread_attr_t g_default_pthread_attr = PTHREAD_ATTR_INITIALIZER;
+#endif
+
/****************************************************************************
* Private Variables
****************************************************************************/