From 316a8cebf5c5833ca1dde5ff6e81d9c27c3af0ed Mon Sep 17 00:00:00 2001 From: nia Date: Sat, 3 Jul 2021 11:27:56 +0200 Subject: [PATCH] Fix building crc32_arm64 on NetBSD/aarch64 pmull_supported is not necessarily defined before crc32c_aarch64 Signed-off-by: Nia Alarie --- mysys/crc32/crc32_arm64.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mysys/crc32/crc32_arm64.c b/mysys/crc32/crc32_arm64.c index 62606c7ddea53..0e70c21812a09 100644 --- a/mysys/crc32/crc32_arm64.c +++ b/mysys/crc32/crc32_arm64.c @@ -2,13 +2,13 @@ #include #include +static int pmull_supported; + #if defined(HAVE_ARMV8_CRC) #if defined(__APPLE__) #include -static int pmull_supported; - int crc32_aarch64_available(void) { int ret; @@ -48,8 +48,6 @@ static unsigned long getauxval(unsigned int key) # define HWCAP_PMULL (1 << 4) #endif -static int pmull_supported; - /* ARM made crc32 default from ARMv8.1 but optional in ARMv8A * Runtime check API. */