summaryrefslogtreecommitdiff
path: root/libre/icecat/fix-double-definition-of-gettid.patch
blob: 99f053837397d55fbd4a6b705171bfb70c3832f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -rupN icecat-60.7.0-orig/tools/profiler/core/platform.h icecat-60.7.0/tools/profiler/core/platform.h
--- icecat-60.7.0-orig/tools/profiler/core/platform.h	2019-11-18 11:29:11.638304093 +0100
+++ icecat-60.7.0/tools/profiler/core/platform.h	2019-11-18 20:35:38.133957814 +0100
@@ -47,7 +47,7 @@
 #if defined(__GLIBC__)
 #include <unistd.h>
 #include <sys/syscall.h>
-static inline pid_t gettid() { return (pid_t)syscall(SYS_gettid); }
+#define gettid() ((pid_t)syscall(SYS_gettid))
 #elif defined(GP_OS_darwin)
 #include <unistd.h>
 #include <sys/syscall.h>