diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2006-09-25 07:38:13 +0000 |
---|---|---|
committer | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2006-09-25 07:38:13 +0000 |
commit | 0a24932ab1ffc0ba5fc20f1c7f47b2620b22d080 (patch) | |
tree | f4720318ea0dd03a3f73b5eee70097bfc49af76d /libc/sysdeps/linux/common | |
parent | 6eaed4179b5d5e38810c345465e0ae21ebbdbb9d (diff) |
Do not include tls.h unless __UCLIBC_HAS_THREADS__ is defined.
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/bits/uClibc_errno.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_errno.h b/libc/sysdeps/linux/common/bits/uClibc_errno.h index 9da9f8155..4cb2a8caa 100644 --- a/libc/sysdeps/linux/common/bits/uClibc_errno.h +++ b/libc/sysdeps/linux/common/bits/uClibc_errno.h @@ -31,10 +31,12 @@ extern int *__errno_location (void) __THROW __attribute__ ((__const__)) 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__ |