From 1d0fc213824eaa2a8f8c4385daaa698ee8fb7c92 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sat, 2 Feb 2019 15:17:02 +0100 Subject: Linux: Add gettid system call wrapper [BZ #6399] This commit adds gettid to on Linux, and not to the kernel-independent GNU API. gettid is now supportable on Linux because too many things assume a 1:1 mapping between libpthread threads and kernel threads. Reviewed-by: Carlos O'Donell --- posix/unistd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'posix/unistd.h') diff --git a/posix/unistd.h b/posix/unistd.h index f674521..55a989f 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -1166,6 +1166,9 @@ int getentropy (void *__buffer, size_t __length) __wur; # include #endif +/* System-specific extensions. */ +#include + __END_DECLS #endif /* unistd.h */ -- cgit v1.1