diff options
author | Robert Nagy <robert@openbsd.org> | 2012-03-29 23:47:07 +0200 |
---|---|---|
committer | Robert Nagy <robert@openbsd.org> | 2012-03-29 23:47:07 +0200 |
commit | 7c9e637bdebbc3688f3d321048f77b480b58dc24 (patch) | |
tree | d66c64d504f7ed07570a8c44b1ec763ac1f1fc01 /bridges | |
parent | 7cce08194caf83703ae83bbbf6227237338e5447 (diff) |
alloca(3) needs stdlib.h on *BSD because there is no alloca.h
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx index 4e74698a5fff..a9abb5cb0544 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx @@ -26,7 +26,11 @@ * ************************************************************************/ +#if defined (FREEBSD) || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY) +#include <stdlib.h> +#else #include <alloca.h> +#endif #include <exception> #include <typeinfo> |