bn/bn_exp.c: Solaris-specific fix, T4 MONTMUL relies on alloca.
authorAndy Polyakov <appro@openssl.org>
Sun, 30 Jun 2013 21:09:09 +0000 (23:09 +0200)
committerAndy Polyakov <appro@openssl.org>
Sun, 30 Jun 2013 21:09:09 +0000 (23:09 +0200)
crypto/bn/bn_exp.c

index 8734263..adc478c 100644 (file)
 # 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))