diff options
Diffstat (limited to 'unix-cpy/mpconfigport.h')
-rw-r--r-- | unix-cpy/mpconfigport.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unix-cpy/mpconfigport.h b/unix-cpy/mpconfigport.h index 78d197033a..a4b5cc0879 100644 --- a/unix-cpy/mpconfigport.h +++ b/unix-cpy/mpconfigport.h @@ -48,3 +48,10 @@ typedef unsigned int machine_uint_t; // must be pointer size typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size typedef double machine_float_t; + +// We need to provide a declaration/definition of alloca() +#ifdef __FreeBSD__ +#include <stdlib.h> +#else +#include <alloca.h> +#endif |