Skip to content

Commit d461676

Browse files
committed
Fix auxv header
1 parent b1b0c33 commit d461676

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/xsimd/config/xsimd_cpuid.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "./xsimd_cpu_features_x86.hpp"
1818
#include "./xsimd_inline.hpp"
1919

20-
#if XSIMD_WITH_LINUX_GETAUXVAL
20+
#if XSIMD_WITH_LINUX_GETAUXVAL && (XSIMD_TARGET_ARM || defined(__riscv_vector))
2121
#include <asm/hwcap.h>
2222
#include <sys/auxv.h>
2323
#endif

include/xsimd/config/xsimd_getauxval.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "../utils/bits.hpp"
1616
#include "./xsimd_config.hpp"
1717

18-
#if XSIMD_WITH_LINUX_GETAUXVAL
18+
#if XSIMD_WITH_LINUX_GETAUXVAL && XSIMD_TARGET_ARM
1919
#include <asm/hwcap.h>
2020
#include <sys/auxv.h>
2121
#endif

0 commit comments

Comments
 (0)