[git commit master 1/1] libc: Fix non-NPTL threads build

Carmelo Amoroso carmelo.amoroso at st.com
Thu Jun 17 17:10:26 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=6af28ff46002a5d3b860155f505ecc411a229b26
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

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 at codesourcery.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
---
 libc/misc/internals/__uClibc_main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index d821268..3f09ad2 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;
-- 
1.7.1



More information about the uClibc-cvs mailing list