Page MenuHomeFreeBSD

D33061.1790164466.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D33061.1790164466.diff

Index: security/openssl/files/patch-crypto_armcap.c
===================================================================
--- /dev/null
+++ security/openssl/files/patch-crypto_armcap.c
@@ -0,0 +1,30 @@
+--- crypto/armcap.c.orig 2021-11-19 15:20:18 UTC
++++ crypto/armcap.c
+@@ -107,8 +107,12 @@ static unsigned long getauxval(unsigned long key)
+ * AArch64 used AT_HWCAP.
+ */
+ # if defined(__arm__) || defined (__arm)
+-# define HWCAP 16
++# if defined(__FreeBSD__)
++# define HWCAP AT_HWCAP
++# else
++# define HWCAP 16
+ /* AT_HWCAP */
++# endif
+ # define HWCAP_NEON (1 << 12)
+
+ # define HWCAP_CE 26
+@@ -118,8 +122,12 @@ static unsigned long getauxval(unsigned long key)
+ # define HWCAP_CE_SHA1 (1 << 2)
+ # define HWCAP_CE_SHA256 (1 << 3)
+ # elif defined(__aarch64__)
+-# define HWCAP 16
++# if defined(__FreeBSD__)
++# define HWCAP AT_HWCAP
++# else
++# define HWCAP 16
+ /* AT_HWCAP */
++# endif
+ # define HWCAP_NEON (1 << 1)
+
+ # define HWCAP_CE HWCAP

File Metadata

Mime Type
text/plain
Expires
Wed, Sep 23, 11:54 AM (17 m, 13 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29880789
Default Alt Text
D33061.1790164466.diff (1 KB)

Event Timeline