summaryrefslogtreecommitdiff
path: root/include/tls.h
diff options
context:
space:
mode:
authorKhem Raj <kraj@mvista.com>2008-12-31 00:31:38 +0000
committerKhem Raj <kraj@mvista.com>2008-12-31 00:31:38 +0000
commit15a971616c3e2f373264d0a2e4cd87aa11042737 (patch)
treede7759a5bfcc0548b63e7d289fd1829aba6dad48 /include/tls.h
parente422845f587db4139bd72fd3ae827ae91420855a (diff)
Merge some pre-work from branch, needed by NPTL.
Diffstat (limited to 'include/tls.h')
-rw-r--r--include/tls.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/tls.h b/include/tls.h
new file mode 100644
index 000000000..a1da3827b
--- /dev/null
+++ b/include/tls.h
@@ -0,0 +1,19 @@
+/* This file defines USE___THREAD to 1 or 0 to cut down on the #if mess. */
+
+#ifndef _include_tls_h
+#define _include_tls_h 1
+
+#include_next <tls.h>
+
+#if USE_TLS && HAVE___THREAD \
+ && (!defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt)
+
+# define USE___THREAD 1
+
+#else
+
+# define USE___THREAD 0
+
+#endif
+
+#endif