about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/nscd_setup_thread.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-03-03 12:16:55 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:16:55 +0100
commitaa350443c5f38f048e413748990c6779f8540c89 (patch)
treea7ca3d6835044d4dcbc2786df9edf0fb21876b0e /sysdeps/unix/sysv/linux/nscd_setup_thread.c
parent5d9f1add86e356209da64f50cb90583c2791c1c0 (diff)
downloadglibc-aa350443c5f38f048e413748990c6779f8540c89.tar.gz
glibc-aa350443c5f38f048e413748990c6779f8540c89.tar.xz
glibc-aa350443c5f38f048e413748990c6779f8540c89.zip
Linux: set_tid_address syscall number is always available
Due to the built-in tables, __NR_set_tid_address is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/nscd_setup_thread.c')
-rw-r--r--sysdeps/unix/sysv/linux/nscd_setup_thread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/nscd_setup_thread.c b/sysdeps/unix/sysv/linux/nscd_setup_thread.c
index fe77704d1f..2ba64ebea5 100644
--- a/sysdeps/unix/sysv/linux/nscd_setup_thread.c
+++ b/sysdeps/unix/sysv/linux/nscd_setup_thread.c
@@ -25,7 +25,6 @@
 int
 setup_thread (struct database_dyn *db)
 {
-#ifdef __NR_set_tid_address
   /* Only supported when NPTL is used.  */
   char buf[100];
   if (confstr (_CS_GNU_LIBPTHREAD_VERSION, buf, sizeof (buf)) >= sizeof (buf)
@@ -42,7 +41,6 @@ setup_thread (struct database_dyn *db)
        So, set the field to a nonzero value which indicates that nscd
        is certainly running and clients can skip the test.  */
     return db->head->nscd_certainly_running = 1;
-#endif
 
   return 0;
 }