From 19564cb4f77660cdb2f980ca619d4b979b9fe342 Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Mon, 27 Nov 2023 22:46:29 -0500 Subject: New upstream version 0.19.0 --- src/utils/threadpool.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/utils/threadpool.cc') diff --git a/src/utils/threadpool.cc b/src/utils/threadpool.cc index a3099e1..6fa2e88 100644 --- a/src/utils/threadpool.cc +++ b/src/utils/threadpool.cc @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -216,7 +217,7 @@ void ThreadPool::WorkerThread::SetupName() { rv = pthread_setname_np(name); assert(rv == 0); static_cast(rv); -#elif defined(__ANDROID__) || defined(__GLIBC__) +#elif defined(__ANDROID__) || (defined(__GLIBC__) && !defined(__GNU__)) // If the |name| buffer is longer than 16 bytes, pthread_setname_np fails // with error 34 (ERANGE) on Android. char name[16]; -- cgit v1.2.3