mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
multimedia/librespot: fix build on powerpc64le
/wrkdirs/usr/ports/multimedia/librespot/work/librespot-0.6.0/cargo-crates/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c:72:28: error: call to undeclared function 'getauxval'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] 72 | OPENSSL_ppc64le_hwcap2 = getauxval(AT_HWCAP2); | ^ 1 error generated.
This commit is contained in:
parent
9df694a48d
commit
a171f90054
1 changed files with 14 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue