aboutsummaryrefslogtreecommitdiff
path: root/src/utils/threadpool.cc
diff options
context:
space:
mode:
authorBoyuan Yang <byang@debian.org>2023-11-27 22:46:32 -0500
committerBoyuan Yang <byang@debian.org>2023-11-27 22:46:32 -0500
commit7fee0fd1b17b4f963fa1db74c3a5fcc3ff142e0d (patch)
tree4ed468528001d8e80e3be09413ae927ca2ac05ce /src/utils/threadpool.cc
parent0d1e75e423265689dd49c7d6023d8bba70ca4d05 (diff)
parent19564cb4f77660cdb2f980ca619d4b979b9fe342 (diff)
downloadlibgav1-7fee0fd1b17b4f963fa1db74c3a5fcc3ff142e0d.tar.gz
libgav1-7fee0fd1b17b4f963fa1db74c3a5fcc3ff142e0d.tar.bz2
libgav1-7fee0fd1b17b4f963fa1db74c3a5fcc3ff142e0d.zip
Update upstream source from tag 'upstream/0.19.0'
Update to upstream version '0.19.0' with Debian dir a4233a4a247b06e8d6e36d07d059f03582d97721
Diffstat (limited to 'src/utils/threadpool.cc')
-rw-r--r--src/utils/threadpool.cc3
1 files changed, 2 insertions, 1 deletions
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 <cinttypes>
#include <cstddef>
#include <cstdint>
+#include <cstdio>
#include <cstring>
#include <new>
#include <utility>
@@ -216,7 +217,7 @@ void ThreadPool::WorkerThread::SetupName() {
rv = pthread_setname_np(name);
assert(rv == 0);
static_cast<void>(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];