From: Andy Polyakov Date: Wed, 16 May 2012 12:42:32 +0000 (+0000) Subject: ppccap.c: assume no features under 32-bit AIX kernel. X-Git-Tag: master-pre-reformat~1771 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd05495748e1875ba4e9b94c477553a3a7edfa92;p=openssl ppccap.c: assume no features under 32-bit AIX kernel. PR: 2810 --- diff --git a/crypto/ppccap.c b/crypto/ppccap.c index ab89ccaa12..f71ba66aa3 100644 --- a/crypto/ppccap.c +++ b/crypto/ppccap.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -53,6 +54,7 @@ static sigjmp_buf ill_jmp; static void ill_handler (int sig) { siglongjmp(ill_jmp,sig); } void OPENSSL_ppc64_probe(void); +void OPENSSL_altivec_probe(void); void OPENSSL_cpuid_setup(void) { @@ -82,6 +84,15 @@ void OPENSSL_cpuid_setup(void) OPENSSL_ppccap_P = 0; +#if defined(_AIX) + if (sizeof(size_t)==4 +# if defined(_SC_AIX_KERNEL_BITMODE) + && sysconf(_SC_AIX_KERNEL_BITMODE)!=64 +# endif + ) + return; +#endif + memset(&ill_act,0,sizeof(ill_act)); ill_act.sa_handler = ill_handler; ill_act.sa_mask = all_masked;