From e070501d12b47e88c1ff8c313f887976fb578938 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 7 Jun 2022 13:09:40 -0300 Subject: Replace __libc_multiple_threads with __libc_single_threaded And also fixes the SINGLE_THREAD_P macro for SINGLE_THREAD_BY_GLOBAL, since header inclusion single-thread.h is in the wrong order, the define needs to come before including sysdeps/unix/sysdep.h. The macro is now moved to a per-arch single-threade.h header. The SINGLE_THREAD_P is used on some more places. Checked on aarch64-linux-gnu and x86_64-linux-gnu. --- sysdeps/nptl/setxid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/nptl') diff --git a/sysdeps/nptl/setxid.h b/sysdeps/nptl/setxid.h index b87cad7b18..3a412179ac 100644 --- a/sysdeps/nptl/setxid.h +++ b/sysdeps/nptl/setxid.h @@ -29,7 +29,7 @@ #define INLINE_SETXID_SYSCALL(name, nr, args...) \ ({ \ int __result; \ - if (!__libc_single_threaded_internal) \ + if (!SINGLE_THREAD_P) \ { \ struct xid_command __cmd; \ __cmd.syscall_no = __NR_##name; \ -- cgit 1.4.1