From 47c15dbb50f07be1ef5a1ffc9559205584078fbc Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 9 Jan 2026 18:44:02 +0100 Subject: add gettid syscall wrapper --- include/unistd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/unistd.h b/include/unistd.h index e45266f14..0fd430549 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1259,6 +1259,10 @@ extern int getentropy(void *__buf, size_t __len) __nonnull ((1)) __wur; # endif #endif +#if (defined _GNU_SOURCE && defined __UCLIBC_HAS_THREADS_NATIVE__) +pid_t gettid(void); +#endif + __END_DECLS -- cgit v1.2.3