diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-11-20 12:25:49 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-11-20 12:25:49 +0100 |
commit | a74b8da459dcdee1d1fc633d9d1856fdb89fd7bd (patch) | |
tree | 291ff6b5793e74c8994696a7fe26e82f6f646601 /package/firefox/patches/patch-tools_profiler_platform-linux_cc | |
parent | 33adad70313bb73464cbd002370cd14bade79a54 (diff) |
fix musl compile, when xorg package collection is selected. X still does not work with musl
Diffstat (limited to 'package/firefox/patches/patch-tools_profiler_platform-linux_cc')
-rw-r--r-- | package/firefox/patches/patch-tools_profiler_platform-linux_cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/package/firefox/patches/patch-tools_profiler_platform-linux_cc b/package/firefox/patches/patch-tools_profiler_platform-linux_cc index 10287f11c..7e9a44eba 100644 --- a/package/firefox/patches/patch-tools_profiler_platform-linux_cc +++ b/package/firefox/patches/patch-tools_profiler_platform-linux_cc @@ -1,5 +1,5 @@ --- mozilla-release.orig/tools/profiler/platform-linux.cc 2013-09-11 01:15:26.000000000 +0200 -+++ mozilla-release/tools/profiler/platform-linux.cc 2013-10-16 10:09:54.000000000 +0200 ++++ mozilla-release/tools/profiler/platform-linux.cc 2013-10-23 16:28:38.000000000 +0200 @@ -53,7 +53,7 @@ #include <sys/stat.h> // open #include <fcntl.h> // open @@ -9,3 +9,19 @@ #include <execinfo.h> // backtrace, backtrace_symbols #endif // def __GLIBC__ #include <strings.h> // index +@@ -73,14 +73,12 @@ + + #define SIGNAL_SAVE_PROFILE SIGUSR2 + +-#if defined(__GLIBC__) +-// glibc doesn't implement gettid(2). ++// glibc/musl doesn't implement gettid(2). + #include <sys/syscall.h> + pid_t gettid() + { + return (pid_t) syscall(SYS_gettid); + } +-#endif + + #if !defined(ANDROID) + // Keep track of when any of our threads calls fork(), so we can |