0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/firefox/0019-fix-sigbus.patch
2024-03-11 10:33:53 +08:00

18 lines
577 B
Diff

Fix SIGBUS Firefox error on Arm. Also apply to other arches just in case.
https://github.com/termux/termux-packages/issues/15901
https://github.com/mozilla/gecko-dev/commit/d7ba2cef0e9b74addedda4bc7f57daf10599a5dc
https://github.com/google/cityhash/blob/master/src/city.cc
--- a/other-licenses/nsis/Contrib/CityHash/cityhash/city.cpp
+++ b/other-licenses/nsis/Contrib/CityHash/cityhash/city.cpp
@@ -33,7 +33,7 @@
using namespace std;
-#if __sparc__
+#if __sparc__ || __TERMUX__
#include <string.h>
static inline uint64 UNALIGNED_LOAD64(const char *p) {
uint64 val;