1 parent e9a684d commit d735278Copy full SHA for d735278
1 file changed
unix/mpconfigport.h
@@ -232,8 +232,11 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
232
void *mmap_region_head; \
233
234
// We need to provide a declaration/definition of alloca()
235
+// unless support for it is disabled.
236
+#if !defined(MICROPY_NO_ALLOCA) || MICROPY_NO_ALLOCA == 0
237
#ifdef __FreeBSD__
238
#include <stdlib.h>
239
#else
240
#include <alloca.h>
241
#endif
242
+#endif
0 commit comments