]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Don't directly include asm/hwcap.h; fix compilation on musl aarch64
authorJosh Triplett <josh@joshtriplett.org>
Sat, 24 Apr 2021 20:27:58 +0000 (13:27 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 29 Apr 2021 13:29:55 +0000 (15:29 +0200)
sys/auxv.h includes the appropriate headers to provide the HWCAP
constants, on both glibc and musl, which makes it unnecessary to include
asm/hwcap.h directly. And on musl, asm/hwcap.h doesn't exist.

arch/arm/armfeature.c

index cf31a48f0cfdf83e4db4d07a502d8466b7889f98..cea19e614e36cfc34671ed2fcc956bc97a277189 100644 (file)
@@ -2,7 +2,6 @@
 
 #if defined(__linux__)
 #  include <sys/auxv.h>
-#  include <asm/hwcap.h>
 #elif defined(__FreeBSD__) && defined(__aarch64__)
 #  include <machine/armreg.h>
 #  ifndef ID_AA64ISAR0_CRC32_VAL