diff options
Diffstat (limited to 'www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h')
| -rw-r--r-- | www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h new file mode 100644 index 0000000..4be2495 --- /dev/null +++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | Undo parts of upstream commit 6c2615dd66a12e9a10d7867241cc3bedfb2b2473 [0] | ||
| 2 | Machine context definitions were only added for Linux. | ||
| 3 | [0] https://github.com/WebKit/WebKit/commit/6c2615dd66a12e9a10d7867241cc3bedfb2b2473 | ||
| 4 | |||
| 5 | Index: Source/WTF/wtf/PlatformHave.h | ||
| 6 | --- Source/WTF/wtf/PlatformHave.h.orig | ||
| 7 | +++ Source/WTF/wtf/PlatformHave.h | ||
| 8 | @@ -233,6 +233,10 @@ | ||
| 9 | #define HAVE_MACHINE_CONTEXT 1 | ||
| 10 | #endif | ||
| 11 | |||
| 12 | +#if OS(OPENBSD) && CPU(RISCV64) | ||
| 13 | +#undef HAVE_MACHINE_CONTEXT | ||
| 14 | +#endif | ||
| 15 | + | ||
| 16 | #if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__) && !CPU(MIPS)) | ||
| 17 | #define HAVE_BACKTRACE 1 | ||
| 18 | #endif | ||
