summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-12-16 23:59:52 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-12-16 23:59:52 +0000
commit6859aa1308df77d104462aa44c5a0ae9917ac3b3 (patch)
tree4978bcc408ee7bc18a4933d42cc2be120f821920
parente0d318ed5405997d9811be462acfda59602fa57f (diff)
parent78bf214c0c54dba00065ac5a35ec5179617dba1b (diff)
downloadvulkan-cereal-6859aa1308df77d104462aa44c5a0ae9917ac3b3.tar.gz
Merge "Fix setting sigevent thread ID"
-rw-r--r--third-party/perfetto/src/base/watchdog_posix.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/third-party/perfetto/src/base/watchdog_posix.cc b/third-party/perfetto/src/base/watchdog_posix.cc
index 2a476a17..76fc5b36 100644
--- a/third-party/perfetto/src/base/watchdog_posix.cc
+++ b/third-party/perfetto/src/base/watchdog_posix.cc
@@ -254,7 +254,11 @@ Watchdog::Timer::Timer(uint32_t ms) {
struct sigevent sev = {};
sev.sigev_notify = SIGEV_THREAD_ID;
+#if defined(__GLIBC__)
sev._sigev_un._tid = base::GetThreadId();
+#else
+ sev.sigev_notify_thread_id = base::GetThreadId();
+#endif
sev.sigev_signo = SIGABRT;
PERFETTO_CHECK(timer_create(CLOCK_MONOTONIC, &sev, &timerid_) != -1);
struct itimerspec its = {};