Building without thread support

Peter Kjellerstedt peter.kjellerstedt at
Fri Sep 22 16:51:32 UTC 2006

While I was looking for a another problem, I tried to build 
the latest svn version of uClibc without thread support.
This failed on the first file it tried to compile, and I had
to apply the following patch to make it compile.
Any comments, or should I go ahead and commit it?

Index: libc/sysdeps/linux/common/bits/uClibc_errno.h
--- libc/sysdeps/linux/common/bits/uClibc_errno.h	(revision 16185)
+++ libc/sysdeps/linux/common/bits/uClibc_errno.h	(working copy)
@@ -31,10 +31,12 @@
 # endif
+#if defined __UCLIBC_HAS_THREADS__
 #include <tls.h>
 /* We now need a declaration of the `errno' variable.  */
 # ifndef __UCLIBC_HAS_THREADS__


More information about the uClibc mailing list