summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2026-01-09 18:44:02 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2026-01-09 18:55:47 +0100
commit47c15dbb50f07be1ef5a1ffc9559205584078fbc (patch)
treed1b4f01caf76de35c624dd892b48ed63c33e00d5 /include
parent3dcc84c74ece048b62c992edceab9cce54446f57 (diff)
add gettid syscall wrapper
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h4
1 files changed, 4 insertions, 0 deletions
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