summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.h.in b/src/config.h.in
index 86a892de..3f871d82 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -51,8 +51,10 @@
#elif COMPILER_IS_MSVC
#include <malloc.h>
#define alloca _alloca
-#elif __MINGW32__
+#elif defined(__MINGW32__)
#include <malloc.h>
+#elif defined(__FreeBSD__)
+#include <stdlib.h>
#else
#error no alloca
#endif