From d41f8ead569ee805b323b45fca30430cefe91cfd Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Fri, 18 Mar 2022 21:01:00 +0000 Subject: [PATCH] macOs M1 build fix on arm cpu checks. --- arch/arm/arm_features.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/arm_features.c b/arch/arm/arm_features.c index f6b67687..979204b8 100644 --- a/arch/arm/arm_features.c +++ b/arch/arm/arm_features.c @@ -11,6 +11,9 @@ # define ID_AA64ISAR0_CRC32_VAL ID_AA64ISAR0_CRC32 # endif #elif defined(__APPLE__) +# if !defined(_DARWIN_C_SOURCE) +# define _DARWIN_C_SOURCE /* enable types aliases (eg u_int) */ +# endif # include #elif defined(_WIN32) # include -- 2.47.2