aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-third__party_unrar_src_os.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-third__party_unrar_src_os.hpp')
-rw-r--r--devel/electron37/files/patch-third__party_unrar_src_os.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-third__party_unrar_src_os.hpp b/devel/electron37/files/patch-third__party_unrar_src_os.hpp
new file mode 100644
index 000000000000..2a6fc6f9128b
--- /dev/null
+++ b/devel/electron37/files/patch-third__party_unrar_src_os.hpp
@@ -0,0 +1,16 @@
+--- third_party/unrar/src/os.hpp.orig 2025-03-24 20:50:14 UTC
++++ third_party/unrar/src/os.hpp
+@@ -166,9 +166,12 @@
+
+ #if defined(__aarch64__) && (defined(__ARM_FEATURE_CRYPTO) || defined(__ARM_FEATURE_CRC32))
+ #include <arm_neon.h>
+-#ifndef _APPLE
++#if !defined(_APPLE) && !defined(__FreeBSD__)
+ #include <sys/auxv.h>
+ #include <asm/hwcap.h>
++#endif
++#ifdef __FreeBSD__
++#include <machine/armreg.h>
+ #endif
+ #ifdef __ARM_FEATURE_CRYPTO
+ #define USE_NEON_AES