summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2019-03-22 15:09:34 +0100
committerMartin Stransky <stransky@redhat.com>2019-03-22 15:09:34 +0100
commit53a4c34c5d35e95d10a3f5bb8ce9806d5adba488 (patch)
tree00589240d755ce86989ffe660d62fd3bafa077c7
parentTest module build, use flatpak global define, Added fix for F31 (mozbz#153396... (diff)
downloadlibrewolf-fedora-ff-53a4c34c5d35e95d10a3f5bb8ce9806d5adba488.tar.gz
librewolf-fedora-ff-53a4c34c5d35e95d10a3f5bb8ce9806d5adba488.tar.bz2
librewolf-fedora-ff-53a4c34c5d35e95d10a3f5bb8ce9806d5adba488.zip
Added missing patch
-rw-r--r--mozilla-1533969.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/mozilla-1533969.patch b/mozilla-1533969.patch
new file mode 100644
index 0000000..a92d194
--- /dev/null
+++ b/mozilla-1533969.patch
@@ -0,0 +1,36 @@
+diff --git a/js/src/util/NativeStack.cpp b/js/src/util/NativeStack.cpp
+--- a/js/src/util/NativeStack.cpp
++++ b/js/src/util/NativeStack.cpp
+@@ -25,7 +25,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(__NR_gettid))
+ # endif
+ #else
+ # error "Unsupported platform"
+diff --git a/tools/profiler/core/platform.h b/tools/profiler/core/platform.h
+--- a/tools/profiler/core/platform.h
++++ b/tools/profiler/core/platform.h
+@@ -39,16 +39,16 @@
+ #include <functional>
+ #include <stdint.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() { return (pid_t)syscall(SYS_gettid); }
++# define gettid() static_cast<pid_t>(syscall(SYS_gettid))
+ #elif defined(GP_OS_darwin)
+ # include <unistd.h>
+ # include <sys/syscall.h>
+-static inline pid_t gettid() { return (pid_t)syscall(SYS_thread_selfid); }
++# define gettid() static_cast<pid_t>(syscall(SYS_thread_selfid))
+ #elif defined(GP_OS_android)
+ # include <unistd.h>
+ #elif defined(GP_OS_windows)
+
bgstack15