]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
macOs M1 build fix on arm cpu checks.
authorDavid CARLIER <devnexen@gmail.com>
Fri, 18 Mar 2022 21:01:00 +0000 (21:01 +0000)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 27 Apr 2022 08:38:49 +0000 (10:38 +0200)
arch/arm/arm_features.c

index f6b67687f3e9bfdd6a14633dbdc54d25184e8b78..979204b83bcef82147dd23c644f49856aac90c38 100644 (file)
@@ -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 <sys/sysctl.h>
 #elif defined(_WIN32)
 #  include <winapifamily.h>