From c47f8dd7a1e5a7fface9512f578b3451e16f7e04 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Tue, 5 Jun 2007 13:45:13 +0200 Subject: [PATCH] gettid: fixed a compilation bug on gentoo --- lib/threads.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/threads.c b/lib/threads.c index d2e0f220..c7497f95 100644 --- a/lib/threads.c +++ b/lib/threads.c @@ -16,9 +16,14 @@ #ifdef CONFIG_LINUX #include -#include +#include +#include #ifdef __NR_gettid -static _syscall0(pid_t, gettid) +static pid_t +gettid(void) +{ + return syscall(__NR_gettid); +} #define CONFIG_USE_GETTID #endif #endif -- 2.39.2