summaryrefslogtreecommitdiff
path: root/source/xap/seamonkey/seamonkey.gettid.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/seamonkey/seamonkey.gettid.patch')
-rw-r--r--source/xap/seamonkey/seamonkey.gettid.patch40
1 files changed, 30 insertions, 10 deletions
diff --git a/source/xap/seamonkey/seamonkey.gettid.patch b/source/xap/seamonkey/seamonkey.gettid.patch
index 81d5eabf..42a39247 100644
--- a/source/xap/seamonkey/seamonkey.gettid.patch
+++ b/source/xap/seamonkey/seamonkey.gettid.patch
@@ -1,15 +1,35 @@
-diff -Nrbu seamonkey-2.49.4/seamonkey-2.49.4/mozilla/tools/profiler/core/platform.h seamonkey-2.49.4-OK/seamonkey-2.49.4/mozilla/tools/profiler/core/platform.h
---- seamonkey-2.49.4/seamonkey-2.49.4/mozilla/tools/profiler/core/platform.h 2018-07-12 05:19:15.000000000 +0300
-+++ seamonkey-2.49.4-OK/seamonkey-2.49.4/mozilla/tools/profiler/core/platform.h 2019-07-27 20:31:47.675086876 +0300
-@@ -65,10 +65,7 @@
- #include <unistd.h>
- #if !defined(__BIONIC__)
- #include <sys/syscall.h>
+--- ./mozilla/tools/profiler/core/platform.h.orig 2020-02-17 17:39:44.000000000 -0600
++++ ./mozilla/tools/profiler/core/platform.h 2020-02-29 22:43:51.381996340 -0600
+@@ -43,32 +43,6 @@
+ #include <vector>
+ #include "StackTop.h"
+
+-// We need a definition of gettid(), but glibc doesn't provide a
+-// wrapper for it.
+-#if defined(__GLIBC__)
+-#include <unistd.h>
+-#include <sys/syscall.h>
-static inline pid_t gettid()
-{
- return (pid_t) syscall(SYS_gettid);
-}
-+
- #endif
- #endif
+-#elif defined(GP_OS_darwin)
+-#include <unistd.h>
+-#include <sys/syscall.h>
+-static inline pid_t gettid()
+-{
+- return (pid_t) syscall(SYS_thread_selfid);
+-}
+-#elif defined(GP_OS_android)
+-#include <unistd.h>
+-#elif defined(GP_OS_windows)
+-#include <windows.h>
+-#include <process.h>
+-#ifndef getpid
+-#define getpid _getpid
+-#endif
+-#endif
+-
+ extern mozilla::LazyLogModule gProfilerLog;
+ // These are for MOZ_LOG="prof:3" or higher. It's the default logging level for