diff options
author | Andy Polyakov <appro@openssl.org> | 2012-05-16 18:18:14 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-05-16 18:18:14 +0000 |
commit | 67fda0c12e972ef26b66490edff7b8a7a07eb532 (patch) | |
tree | 7c6233350d6785781e800e43300b9852362c9b21 /crypto | |
parent | 1dded7f7e8e9f737ef9d7e3c3ef165a78fd7fa1d (diff) |
ppccap.c: assume no features under 32-bit AIX kernel [from HEAD].
PR: 2810
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ppccap.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <string.h> #include <setjmp.h> #include <signal.h> +#include <unistd.h> #include <crypto.h> #include <openssl/bn.h> @@ -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; |