summaryrefslogtreecommitdiff
path: root/palemoon/mozilla-1533969-palemoon.patch
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-06-15 15:50:02 +0000
committerB Stack <bgstack15@gmail.com>2019-06-15 15:50:02 +0000
commitb2edddf8fc6e3719c4010afa0f7b6f05f9169f8a (patch)
tree3e315af62a6ad4f0e6b37ef80fd0715e25305ec6 /palemoon/mozilla-1533969-palemoon.patch
parentMerge branch 'freefilesync-bump' into 'master' (diff)
parentFix typo of date in mozilla-1533969-palemoon.patch (diff)
downloadstackrpms-b2edddf8fc6e3719c4010afa0f7b6f05f9169f8a.tar.gz
stackrpms-b2edddf8fc6e3719c4010afa0f7b6f05f9169f8a.tar.bz2
stackrpms-b2edddf8fc6e3719c4010afa0f7b6f05f9169f8a.zip
Merge branch 'palemoon-rawhide' into 'master'
compile palemoon in fc rawhide successfully See merge request bgstack15/stackrpms!65
Diffstat (limited to 'palemoon/mozilla-1533969-palemoon.patch')
-rw-r--r--palemoon/mozilla-1533969-palemoon.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/palemoon/mozilla-1533969-palemoon.patch b/palemoon/mozilla-1533969-palemoon.patch
new file mode 100644
index 0000000..d4ed4c4
--- /dev/null
+++ b/palemoon/mozilla-1533969-palemoon.patch
@@ -0,0 +1,45 @@
+Source: https://bugzilla.mozilla.org/show_bug.cgi?id=1533969
+From: Emilio Cobos Álvarez (:emilio) https://bugzilla.mozilla.org/user_profile?user_id=546716
+Date: 2019-03-12 15:08 PDT
+Modified for Pale Moon by: B Stack <bgstack15@gmail.com>
+This patch is applicable for all versions of Fedora GNU/Linux, but it really only affects gcc >= 9.1.1 in fc == 31
+--- tools/profiler/tasktracer/GeckoTaskTracer.cpp.orig 2019-06-04 18:16:01.000000000 -0400
++++ tools/profiler/tasktracer/GeckoTaskTracer.cpp 2019-06-13 13:16:29.160643732 -0400
+@@ -20,19 +20,19 @@
+
+ #include <stdarg.h>
+
+-// We need a definition of gettid(), but glibc doesn't provide a
++// We need a definition of gettid(), but old glibc versions don't provide a
+ // wrapper for it.
+ #if defined(__GLIBC__)
+ #include <unistd.h>
+ #include <sys/syscall.h>
+-static inline pid_t gettid()
++#define gettid() static_cast<pid_t>(syscall(SYS_gettid))
+ {
+ return (pid_t) syscall(SYS_gettid);
+ }
+ #elif defined(XP_MACOSX)
+ #include <unistd.h>
+ #include <sys/syscall.h>
+-static inline pid_t gettid()
++#define gettid() static_cast<pid_t>(syscall(SYS_thread_selfid))
+ {
+ return (pid_t) syscall(SYS_thread_selfid);
+ }
+--- js/src/jsnativestack.cpp.orig 2019-06-04 18:16:01.000000000 -0400
++++ js/src/jsnativestack.cpp 2019-06-14 08:13:04.080567510 -0400
+@@ -26,11 +26,7 @@
+ # include <sys/syscall.h>
+ # include <sys/types.h>
+ # include <unistd.h>
+-static pid_t
+-gettid()
+-{
+- return syscall(__NR_gettid);
+-}
++# define gettid() static_cast<pid_t>(syscall(SYS_gettid))
+ # endif
+
+ #else
bgstack15