mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
Fix building crc32_arm64 on NetBSD/aarch64
pmull_supported is not necessarily defined before crc32c_aarch64 Signed-off-by: Nia Alarie <nia@NetBSD.org>
This commit is contained in:
parent
1519013f51
commit
316a8cebf5
1 changed files with 2 additions and 4 deletions
|
@ -2,13 +2,13 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
static int pmull_supported;
|
||||||
|
|
||||||
#if defined(HAVE_ARMV8_CRC)
|
#if defined(HAVE_ARMV8_CRC)
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
|
||||||
static int pmull_supported;
|
|
||||||
|
|
||||||
int crc32_aarch64_available(void)
|
int crc32_aarch64_available(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -48,8 +48,6 @@ static unsigned long getauxval(unsigned int key)
|
||||||
# define HWCAP_PMULL (1 << 4)
|
# define HWCAP_PMULL (1 << 4)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int pmull_supported;
|
|
||||||
|
|
||||||
/* ARM made crc32 default from ARMv8.1 but optional in ARMv8A
|
/* ARM made crc32 default from ARMv8.1 but optional in ARMv8A
|
||||||
* Runtime check API.
|
* Runtime check API.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue