svn commit: trunk/uClibc/libc/sysdeps/linux/common/bits

pkj at uclibc.org pkj at uclibc.org
Mon Sep 25 07:38:14 UTC 2006


Author: pkj
Date: 2006-09-25 00:38:13 -0700 (Mon, 25 Sep 2006)
New Revision: 16215

Log:
Do not include tls.h unless __UCLIBC_HAS_THREADS__ is defined.


Modified:
   trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_errno.h


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_errno.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_errno.h	2006-09-25 07:27:46 UTC (rev 16214)
+++ trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_errno.h	2006-09-25 07:38:13 UTC (rev 16215)
@@ -31,10 +31,12 @@
 	attribute_hidden
 # endif
 ;
-#include <tls.h>
-#if USE___THREAD
+# if defined __UCLIBC_HAS_THREADS__
+#  include <tls.h>
+#  if USE___THREAD
 libc_hidden_proto(__errno_location)
-#endif
+#  endif
+# endif
 
 /* We now need a declaration of the `errno' variable.  */
 # ifndef __UCLIBC_HAS_THREADS__




More information about the uClibc-cvs mailing list