diff --git a/multimedia/librespot/files/patch-cargo-crates_aws-lc-sys-0.22.0_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c b/multimedia/librespot/files/patch-cargo-crates_aws-lc-sys-0.22.0_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c new file mode 100644 index 000000000000..002249cdb7e6 --- /dev/null +++ b/multimedia/librespot/files/patch-cargo-crates_aws-lc-sys-0.22.0_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c @@ -0,0 +1,14 @@ +--- cargo-crates/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2006-07-24 01:21:28 UTC ++++ cargo-crates/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c +@@ -69,7 +69,11 @@ void OPENSSL_cpuid_setup(void) { + + void OPENSSL_cpuid_setup(void) { + #if defined(AT_HWCAP2) ++# if defined(__linux__) + OPENSSL_ppc64le_hwcap2 = getauxval(AT_HWCAP2); ++#elif defined(__FreeBSD__) ++ elf_aux_info(AT_HWCAP2, &OPENSSL_ppc64le_hwcap2, sizeof(OPENSSL_ppc64le_hwcap2)); ++#endif + #else + OPENSSL_ppc64le_hwcap2 = 0; + #endif