diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2021-01-01 10:11:34 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2021-01-01 10:11:34 +0000 |
commit | 26b4c8f71f91d22e081b27814782686edde0c90a (patch) | |
tree | 1c321c39372c25d8634e75b5c8e08edc676b296d /devel/electron4/files/patch-third__party_zlib_arm__features.c | |
parent | New port: math/py-optuna: A hyperparameter optimization framework (diff) |
Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed
With hat: portmgr
Diffstat (limited to 'devel/electron4/files/patch-third__party_zlib_arm__features.c')
-rw-r--r-- | devel/electron4/files/patch-third__party_zlib_arm__features.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/electron4/files/patch-third__party_zlib_arm__features.c b/devel/electron4/files/patch-third__party_zlib_arm__features.c new file mode 100644 index 000000000000..ba73caed182c --- /dev/null +++ b/devel/electron4/files/patch-third__party_zlib_arm__features.c @@ -0,0 +1,29 @@ +--- third_party/zlib/arm_features.c.orig 2019-03-15 06:38:25 UTC ++++ third_party/zlib/arm_features.c +@@ -16,12 +16,13 @@ + #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 + + int ZLIB_INTERNAL arm_cpu_enable_crc32 = 0; + int ZLIB_INTERNAL arm_cpu_enable_pmull = 0; + ++#ifdef ARMV8_OS_LINUX + static pthread_once_t cpu_check_inited_once = PTHREAD_ONCE_INIT; + + static void init_arm_features(void) +@@ -53,8 +54,11 @@ 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 + } |