summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-10-03 06:27:04 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-10-03 06:27:04 +0200
commitedda0488a6879c1598bee908418cba14d66f9712 (patch)
treed77db4ac8b198b209f1ca7be8bb2add55aa49e7d /libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c
parent59fe21c468d852a08847a8bcb62dea56408b510e (diff)
m68k: fix linuxthreads compile for coldfire
The tas instruction is not available for most coldfire CPU's. Use bset instead in this case as already used in linuxthreads.old.
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c')
-rw-r--r--libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c b/libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c
index 706faeff3..634c75245 100644
--- a/libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c
+++ b/libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c
@@ -16,7 +16,9 @@
<http://www.gnu.org/licenses/>. */
#include <netdb.h>
+#ifdef __UCLIBC_HAS_TLS__
#include <tls.h>
+#endif
#include <linuxthreads/internals.h>
#include <sysdep-cancel.h>