From cca323964ee66789638f7d41b7bfce69a596f553 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 18 Jan 2025 16:37:26 +0100 Subject: Linux: Add missing header in ARM64 build. Add .oarmv8crypto to .gitignore --- .gitignore | 1 + src/Crypto/cpu.c | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 412edcca..e1f27fcd 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ src/Main/veracrypt *.osse41 *.ossse3 *.oshani +*.oarmv8crypto # VC macOS build artifacts src/Main/VeraCrypt diff --git a/src/Crypto/cpu.c b/src/Crypto/cpu.c index 85278a92..0f1ba54d 100644 --- a/src/Crypto/cpu.c +++ b/src/Crypto/cpu.c @@ -470,12 +470,14 @@ void DisableCPUExtendedFeatures () #endif #if CRYPTOPP_BOOL_ARMV8 - -volatile int g_hasAESARM = 0; - +#if defined(__linux__) && defined(__aarch64__) +#include #ifndef HWCAP_AES # define HWCAP_AES (1 << 3) #endif +#endif + +volatile int g_hasAESARM = 0; inline int CPU_QueryAES() { -- cgit v1.2.3