aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-09 16:30:28 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-09 17:39:40 +0100
commitc108ce5c715d767bc13e181ddc9f944e7aa3b962 (patch)
tree6bad2afa9ec8d38205dce805bb7889d1efe4c4b3
parentc837ea7168f7efbaf5f7b61b946ee4abcda73580 (diff)
downloadglibc-c108ce5c715d767bc13e181ddc9f944e7aa3b962.tar.xz
glibc-c108ce5c715d767bc13e181ddc9f944e7aa3b962.zip
Linux: set_tid_address syscall number is always available
Due to the built-in tables, __NR_set_tid_address is always defined.
-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 6e14918be0..a49676f4b4 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)
@@ -43,7 +42,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;
}