summaryrefslogtreecommitdiff
path: root/libc/misc/internals
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2010-06-17 19:10:26 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2010-06-17 19:10:26 +0200
commit6af28ff46002a5d3b860155f505ecc411a229b26 (patch)
tree5de50ac8a5b82b8215bfa044c3c6742b4be82407 /libc/misc/internals
parent729293867378c80b4e534a7ff3d68ac936f03824 (diff)
libc: Fix non-NPTL threads build
This patch fixes some issues building uclibc with linuxthreads, that seem to have been introduced by the NPTL changes. Signed-off-by: Andrew Stubbs <ams@codesourcery.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/misc/internals')
-rw-r--r--libc/misc/internals/__uClibc_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index d82126815..3f09ad228 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -36,7 +36,9 @@
#include <not-cancel.h>
#include <atomic.h>
#endif
-
+#ifdef __UCLIBC_HAS_THREADS__
+#include <pthread.h>
+#endif
#ifndef SHARED
void *__libc_stack_end = NULL;