Added ifdefs for DragonflyBSD

Possible fix for #3179
This commit is contained in:
SChernykh 2022-12-16 15:26:37 +01:00
parent 25decd1b7f
commit a02afe6d4f
4 changed files with 10 additions and 10 deletions

View file

@ -27,7 +27,7 @@
#if __ARM_FEATURE_CRYPTO && !defined(__APPLE__)
# include <sys/auxv.h>
# ifndef __FreeBSD__
# if !defined(__FreeBSD__) && !defined(__DragonFly__)
# include <asm/hwcap.h>
# else
# include <stdint.h>
@ -71,7 +71,7 @@ xmrig::BasicCpuInfo::BasicCpuInfo() :
# if __ARM_FEATURE_CRYPTO
# if defined(__APPLE__)
m_flags.set(FLAG_AES, true);
# elif defined(__FreeBSD__)
# elif defined(__FreeBSD__) || defined(__DragonFly__)
uint64_t isar0 = READ_SPECIALREG(id_aa64isar0_el1);
m_flags.set(FLAG_AES, ID_AA64ISAR0_AES_VAL(isar0) >= ID_AA64ISAR0_AES_BASE);
# else