aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/hurd
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-19 17:47:24 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-19 20:45:51 +0200
commitb44c1e12524bb5de0f93294a7c24c8e41c06bb75 (patch)
tree0ebc7e70a7027b383545f9fbb56dfebba0cbaeeb /sysdeps/hurd
parent6af84886adb7105d452c0ffec21b5eed1ffa2d65 (diff)
downloadglibc-b44c1e12524bb5de0f93294a7c24c8e41c06bb75.zip
glibc-b44c1e12524bb5de0f93294a7c24c8e41c06bb75.tar.gz
glibc-b44c1e12524bb5de0f93294a7c24c8e41c06bb75.tar.bz2
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 <joseph@codesourcery.com> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Diffstat (limited to 'sysdeps/hurd')
-rw-r--r--sysdeps/hurd/include/hurd.h3
1 files changed, 3 insertions, 0 deletions
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