diff options
Diffstat (limited to 'libre/icecat/fix-double-definition-of-gettid.patch')
-rw-r--r-- | libre/icecat/fix-double-definition-of-gettid.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libre/icecat/fix-double-definition-of-gettid.patch b/libre/icecat/fix-double-definition-of-gettid.patch new file mode 100644 index 000000000..99f053837 --- /dev/null +++ b/libre/icecat/fix-double-definition-of-gettid.patch @@ -0,0 +1,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> |