summaryrefslogtreecommitdiff
path: root/system/openssl/ppc-auxv.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/openssl/ppc-auxv.patch')
-rw-r--r--system/openssl/ppc-auxv.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/system/openssl/ppc-auxv.patch b/system/openssl/ppc-auxv.patch
new file mode 100644
index 000000000..a22ef83c2
--- /dev/null
+++ b/system/openssl/ppc-auxv.patch
@@ -0,0 +1,23 @@
+--- a/crypto/ppccap.c
++++ b/crypto/ppccap.c
+@@ -207,17 +207,9 @@
+ return 0;
+ }
+
+-#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
+-# if __GLIBC_PREREQ(2, 16)
+-# include <sys/auxv.h>
+-# define OSSL_IMPLEMENT_GETAUXVAL
+-# elif defined(__ANDROID_API__)
+-/* see https://developer.android.google.cn/ndk/guides/cpu-features */
+-# if __ANDROID_API__ >= 18
+-# include <sys/auxv.h>
+-# define OSSL_IMPLEMENT_GETAUXVAL
+-# endif
+-# endif
++#if defined(__linux__)
++# include <sys/auxv.h>
++# define OSSL_IMPLEMENT_GETAUXVAL
+ #endif
+
+ #if defined(__FreeBSD__)