From: Martin Mares Date: Wed, 21 Jul 2021 20:16:18 +0000 (+0200) Subject: Rename our gettid() wrapper to ucw_gettid() X-Git-Tag: v6.5.13~2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=962952444350b516b9d14f1ca1c3a6a79f8b5a0b;p=libucw.git Rename our gettid() wrapper to ucw_gettid() Recent versions of glibc apparently supply gettid() in , which clashes with our definition. --- diff --git a/ucw/threads.c b/ucw/threads.c index d9100119..b6625714 100644 --- a/ucw/threads.c +++ b/ucw/threads.c @@ -20,7 +20,7 @@ #include #ifdef __NR_gettid static pid_t -gettid(void) +ucw_gettid(void) { return syscall(__NR_gettid); } @@ -53,7 +53,7 @@ ucwlib_tid(void) int tid; #ifdef CONFIG_USE_GETTID - tid = gettid(); + tid = ucw_gettid(); if (tid > 0) return tid; /* The syscall might be unimplemented */