aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_exp.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2013-06-30 23:09:09 +0200
committerAndy Polyakov <appro@openssl.org>2013-06-30 23:09:09 +0200
commitb74ce8d9489b319c0d097ff116b5a0bdb634462d (patch)
tree77abd30964cd2cc289d68e0fd8eeb9571b6f1d35 /crypto/bn/bn_exp.c
parenta9d14832fd98cb0c13b53fddea39765fb259358c (diff)
downloadopenssl-b74ce8d9489b319c0d097ff116b5a0bdb634462d.tar.gz
bn/bn_exp.c: Solaris-specific fix, T4 MONTMUL relies on alloca.
Diffstat (limited to 'crypto/bn/bn_exp.c')
-rw-r--r--crypto/bn/bn_exp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn_exp.c b/crypto/bn/bn_exp.c
index 8734263bef..adc478caa6 100644
--- a/crypto/bn/bn_exp.c
+++ b/crypto/bn/bn_exp.c
@@ -124,6 +124,8 @@
# ifndef alloca
# define alloca(s) __builtin_alloca((s))
# endif
+#elif defined(__sun)
+# include <alloca.h>
#endif
#if defined(OPENSSL_BN_ASM_MONT) && (defined(__sparc__) || defined(__sparc))