X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fthreads.c;h=c7497f95247f5dc2d6205d1d080686d1ad02b30f;hb=7119957a2df57af617f432dd429e1d6ae5cbe0fd;hp=d2e0f220d769bce15c34935cb12ca259e8413cfe;hpb=359bfe46342e7ae719dbea0c254807b4b9ad54a4;p=libucw.git 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