2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-08-27 00:06:20 +00:00
repo/extra/firefox/patches/fix-bug-1261392.patch

18 lines
636 B
Diff
Raw Normal View History

2020-01-13 17:53:40 +00:00
diff --git a/tools/profiler/core/platform-linux-android.cpp b/tools/profiler/core/platform-linux-android.cpp
index 07857f2..92e693c 100644
--- a/tools/profiler/core/platform-linux-android.cpp
+++ b/tools/profiler/core/platform-linux-android.cpp
@@ -72,12 +72,7 @@ using namespace mozilla;
int profiler_current_process_id() { return getpid(); }
int profiler_current_thread_id() {
- // glibc doesn't provide a wrapper for gettid().
2020-01-13 17:37:09 +00:00
-#if defined(__GLIBC__)
2020-01-13 17:53:40 +00:00
return static_cast<int>(static_cast<pid_t>(syscall(SYS_gettid)));
-#else
- return static_cast<int>(gettid());
-#endif
2020-01-13 17:37:09 +00:00
}
2020-01-13 17:53:40 +00:00
void* GetStackTop(void* aGuess) { return aGuess; }