]> 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>
Fri, 17 Mar 2023 20:27:56 +0000 (21:27 +0100)
arch/arm/armfeature.c

index bef9b290ad232d42b279552774f0947e08143df2..978c987222d0e2b84f58c25040f4d3aeae95a0c2 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>