summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/i386/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/i386/tls.h')
-rw-r--r--nptl/sysdeps/i386/tls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/sysdeps/i386/tls.h b/nptl/sysdeps/i386/tls.h
index 9c695c0a14..2fea9b2f59 100644
--- a/nptl/sysdeps/i386/tls.h
+++ b/nptl/sysdeps/i386/tls.h
@@ -81,6 +81,7 @@ typedef struct
/* The old way: using LDT. */
+#ifndef NO_SET_THREAD_AREA
/* Structure passed to `modify_ldt', 'set_thread_area', and 'clone' calls. */
struct user_desc
{
@@ -102,6 +103,7 @@ union user_desc_init
struct user_desc desc;
unsigned int vals[4];
};
+#endif /* NO_SET_THREAD_AREA */
/* Get the thread descriptor definition. */
@@ -191,6 +193,7 @@ union user_desc_init
# endif
#endif
+#ifndef NO_SET_THREAD_AREA
/* Code to initially initialize the thread pointer. This might need
special attention since 'errno' is not yet available and if the
operation can cause a failure 'errno' must not be touched. */
@@ -245,6 +248,7 @@ union user_desc_init
\
_result == 0 ? NULL \
: "set_thread_area failed when setting up thread-local storage\n"; })
+#endif /* NO_SET_THREAD_AREA */
/* Return the address of the dtv for the current thread. */