From 78c3e20579d3baa159c8b51b59d415b6e521614b Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 21 Oct 2012 18:19:41 +0000 Subject: linux-pcc: make it more robust and recognize KERNEL_BITS variable. --- crypto/ppccap.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crypto/ppccap.c') diff --git a/crypto/ppccap.c b/crypto/ppccap.c index f71ba66aa3..531f1b3be8 100644 --- a/crypto/ppccap.c +++ b/crypto/ppccap.c @@ -4,6 +4,9 @@ #include #include #include +#ifdef __linux +#include +#endif #include #include @@ -102,6 +105,10 @@ void OPENSSL_cpuid_setup(void) if (sizeof(size_t)==4) { +#ifdef __linux + struct utsname uts; + if (uname(&uts)==0 && strcmp(uts.machine,"ppc64")==0) +#endif if (sigsetjmp(ill_jmp,1) == 0) { OPENSSL_ppc64_probe(); -- cgit v1.2.3