diff options
author | nia <nia@NetBSD.org> | 2021-07-03 11:27:56 +0200 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2021-07-22 16:41:59 +1000 |
commit | 316a8cebf5c5833ca1dde5ff6e81d9c27c3af0ed (patch) | |
tree | 41f84237beae03597fdb73fc7ca4d10e5d1cd999 | |
parent | 1519013f518af5331fa48a5f602808aa2346df05 (diff) | |
download | mariadb-git-316a8cebf5c5833ca1dde5ff6e81d9c27c3af0ed.tar.gz |
Fix building crc32_arm64 on NetBSD/aarch64
pmull_supported is not necessarily defined before crc32c_aarch64
Signed-off-by: Nia Alarie <nia@NetBSD.org>
-rw-r--r-- | mysys/crc32/crc32_arm64.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mysys/crc32/crc32_arm64.c b/mysys/crc32/crc32_arm64.c index 62606c7ddea..0e70c21812a 100644 --- a/mysys/crc32/crc32_arm64.c +++ b/mysys/crc32/crc32_arm64.c @@ -2,13 +2,13 @@ #include <string.h> #include <stdint.h> +static int pmull_supported; + #if defined(HAVE_ARMV8_CRC) #if defined(__APPLE__) #include <sys/sysctl.h> -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. */ |