From cffba26fa183fced0edf1dadce6acb1b82f6fe50 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 27 Jul 2015 19:43:43 -0400 Subject: Fixed compiler error under OpenBSD for missing "alloca" --- stdcpp.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'stdcpp.h') diff --git a/stdcpp.h b/stdcpp.h index 851a1d32..2a90f584 100644 --- a/stdcpp.h +++ b/stdcpp.h @@ -51,14 +51,15 @@ // #include // #endif -// Nearly everyone gets alloca from . -#if defined(CRYPTOPP_UNIX_AVAILABLE) && !defined(__MINGW32__) && !defined(__BORLANDC__) -# include -#endif - -// Windows includes alloca in . +// Handle alloca... #if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(__MINGW32__) || defined(__BORLANDC__) -# include +# include +#else +# ifdef __OpenBSD__ +# include +# else +# include +# endif #endif #ifdef _MSC_VER -- cgit v1.2.1