aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thunderbird/fix-bug-1261392.patch
diff options
context:
space:
mode:
authorJoseph Benden <joe@benden.us>2019-07-18 00:10:48 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-08-28 12:33:37 +0000
commit641fc95383be633859e0c4cd1a22b95b3ef10c79 (patch)
tree7cb0a88f781352d32de2fa1ca85b57cb60169182 /testing/thunderbird/fix-bug-1261392.patch
parent76a5e58c61aa5b678248a6eff0937cdf4a924acb (diff)
downloadaports-641fc95383be633859e0c4cd1a22b95b3ef10c79.tar.bz2
aports-641fc95383be633859e0c4cd1a22b95b3ef10c79.tar.xz
testing/thunderbird: new aport
https://www.thunderbird.net/ Thunderbird email client with package for GPG encrypted email (Enigmail). Signed-off-by: Joseph Benden <joe@benden.us>
Diffstat (limited to 'testing/thunderbird/fix-bug-1261392.patch')
-rw-r--r--testing/thunderbird/fix-bug-1261392.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/thunderbird/fix-bug-1261392.patch b/testing/thunderbird/fix-bug-1261392.patch
new file mode 100644
index 0000000000..acf56e1ece
--- /dev/null
+++ b/testing/thunderbird/fix-bug-1261392.patch
@@ -0,0 +1,27 @@
+diff --git a/tools/profiler/core/platform.h b/tools/profiler/core/platform.h
+index 5f0fb69..086a511 100644
+--- a/tools/profiler/core/platform.h
++++ b/tools/profiler/core/platform.h
+@@ -42,10 +42,11 @@
+ #include "PlatformMacros.h"
+ #include <vector>
+
+-// We need a definition of gettid(), but glibc doesn't provide a
+-// wrapper for it.
+-#if defined(__GLIBC__)
++// We need a definition of gettid(), but Linux libc implementations don't
++// provide a wrapper for it (except for Bionic)
++#if defined(__linux__)
+ #include <unistd.h>
++#if !defined(__BIONIC__)
+ #include <sys/syscall.h>
+ static inline pid_t gettid() { return (pid_t)syscall(SYS_gettid); }
+ #elif defined(GP_OS_darwin)
+@@ -61,6 +62,7 @@ static inline pid_t gettid() { return (pid_t)syscall(SYS_thread_selfid); }
+ #define getpid _getpid
+ #endif
+ #endif
++#endif
+
+ extern mozilla::LazyLogModule gProfilerLog;
+