about summary refs log tree commit diff
path: root/nptl/nptl-init.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-10-17 15:03:00 -0700
committerRoland McGrath <roland@hack.frob.com>2014-10-17 15:03:00 -0700
commit674b89786e04a4addc79d70e025848f1e0116a41 (patch)
treef74ab3ca737fbdf509e9cb02dac99bddda136f30 /nptl/nptl-init.c
parent184ee94010786a9e0952aff3af39eba1d72287d3 (diff)
downloadglibc-674b89786e04a4addc79d70e025848f1e0116a41.tar.gz
glibc-674b89786e04a4addc79d70e025848f1e0116a41.tar.xz
glibc-674b89786e04a4addc79d70e025848f1e0116a41.zip
NPTL: Clean up THREAD_SYSINFO macros.
Diffstat (limited to 'nptl/nptl-init.c')
-rw-r--r--nptl/nptl-init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index a39ec9a23d..b7d2197b3e 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -304,8 +304,10 @@ __pthread_initialize_minimal_internal (void)
 
   /* Minimal initialization of the thread descriptor.  */
   struct pthread *pd = THREAD_SELF;
+#ifdef __NR_set_tid_address
   INTERNAL_SYSCALL_DECL (err);
   pd->pid = pd->tid = INTERNAL_SYSCALL (set_tid_address, err, 1, &pd->tid);
+#endif
   THREAD_SETMEM (pd, specific[0], &pd->specific_1stblock[0]);
   THREAD_SETMEM (pd, user_stack, true);
   if (LLL_LOCK_INITIALIZER != 0)