diff --git a/ports/embed/port/mpconfigport_common.h b/ports/embed/port/mpconfigport_common.h index 69216a7582..8e19859ed2 100644 --- a/ports/embed/port/mpconfigport_common.h +++ b/ports/embed/port/mpconfigport_common.h @@ -33,6 +33,10 @@ typedef uintptr_t mp_uint_t; // must be pointer size typedef long mp_off_t; // Need to provide a declaration/definition of alloca() +#if defined(__FreeBSD__) || defined(__NetBSD__) +#include +#else #include +#endif #define MICROPY_MPHALPORT_H "port/mphalport.h"