From: Pavel Charvat Date: Tue, 5 Jun 2007 11:45:13 +0000 (+0200) Subject: gettid: fixed a compilation bug on gentoo X-Git-Tag: holmes-import~506^2~13^2~108 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c47f8dd7a1e5a7fface9512f578b3451e16f7e04;p=libucw.git gettid: fixed a compilation bug on gentoo --- 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