From: David CARLIER Date: Fri, 18 Mar 2022 21:01:00 +0000 (+0000) Subject: macOs M1 build fix on arm cpu checks. X-Git-Tag: 2.1.0-beta1~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d41f8ead569ee805b323b45fca30430cefe91cfd;p=thirdparty%2Fzlib-ng.git macOs M1 build fix on arm cpu checks. --- 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