diff options
Diffstat (limited to 'www/iridium/files/patch-third__party_zlib_arm__features.c')
-rw-r--r-- | www/iridium/files/patch-third__party_zlib_arm__features.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/www/iridium/files/patch-third__party_zlib_arm__features.c b/www/iridium/files/patch-third__party_zlib_arm__features.c new file mode 100644 index 000000000000..1dea27934e05 --- /dev/null +++ b/www/iridium/files/patch-third__party_zlib_arm__features.c @@ -0,0 +1,28 @@ +--- third_party/zlib/arm_features.c.orig 2019-03-11 22:01:18 UTC ++++ third_party/zlib/arm_features.c +@@ -21,9 +21,10 @@ int ZLIB_INTERNAL arm_cpu_enable_pmull = 0; + #include <asm/hwcap.h> + #include <sys/auxv.h> + #else +-#error ### No ARM CPU features detection in your platform/OS ++/* #error ### No ARM CPU features detection in your platform/OS */ + #endif + ++#ifdef ARMV8_OS_LINUX + static pthread_once_t cpu_check_inited_once = PTHREAD_ONCE_INIT; + + static void init_arm_features(void) +@@ -55,10 +56,13 @@ static void init_arm_features(void) + if (capabilities & flag_pmull) + arm_cpu_enable_pmull = 1; + } ++#endif + + void ZLIB_INTERNAL arm_check_features(void) + { ++#ifdef ARMV8_OS_LINUX + pthread_once(&cpu_check_inited_once, init_arm_features); ++#endif + } + #else + #include <windows.h> |