From 962952444350b516b9d14f1ca1c3a6a79f8b5a0b Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 21 Jul 2021 22:16:18 +0200 Subject: [PATCH] Rename our gettid() wrapper to ucw_gettid() Recent versions of glibc apparently supply gettid() in , which clashes with our definition. --- ucw/threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.2