From b44c1e12524bb5de0f93294a7c24c8e41c06bb75 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Fri, 19 May 2023 17:47:24 +0300 Subject: hurd: Fix using interposable hurd_thread_self Create a private hidden __hurd_thread_self alias, and use that one. Fixes 2f8ecb58a59eb82c43214d000842d99644a662d1 "hurd: Fix x86_64 _hurd_tls_fork" and c7fcce38c83a2bb665ef5dc4981bf20c7e586123 "hurd: Make sure to not use tcb->self" Reported-by: Joseph Myers Signed-off-by: Sergey Bugaev --- sysdeps/hurd/include/hurd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysdeps/hurd') diff --git a/sysdeps/hurd/include/hurd.h b/sysdeps/hurd/include/hurd.h index 7da9af2..568092d 100644 --- a/sysdeps/hurd/include/hurd.h +++ b/sysdeps/hurd/include/hurd.h @@ -11,5 +11,8 @@ void _hurd_libc_proc_init (char **argv); libc_hidden_proto (_hurd_exec_paths) libc_hidden_proto (_hurd_init) libc_hidden_proto (_hurd_libc_proc_init) + +extern thread_t __hurd_thread_self (void); +libc_hidden_proto (__hurd_thread_self) #endif #endif -- cgit v1.1