summaryrefslogtreecommitdiffstats
path: root/crypto/bn
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:14:31 +0200
commit8508a8099864cde1c577711298a26baa99b85ee0 (patch)
tree47ea46f1beed1541d7b958de51a456341283fd11 /crypto/bn
parent7850a8bc04f2709ac2f03cafde07690887b5512d (diff)
bn/bn_exp.c: Solaris-specific fix, T4 MONTMUL relies on alloca.
(cherry picked from commit b74ce8d9489b319c0d097ff116b5a0bdb634462d)
Diffstat (limited to 'crypto/bn')
-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 5398552a74..fa10ea1773 100644
--- a/crypto/bn/bn_exp.c
+++ b/crypto/bn/bn_exp.c
@@ -123,6 +123,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))