patch-mpy-cross_mpconfigport_h 433 B

123456789101112
  1. Index: mpy-cross/mpconfigport.h
  2. --- mpy-cross/mpconfigport.h.orig
  3. +++ mpy-cross/mpconfigport.h
  4. @@ -119,7 +119,7 @@ typedef long mp_off_t;
  5. #define MP_PLAT_PRINT_STRN(str, len) (void)0
  6. // We need to provide a declaration/definition of alloca()
  7. -#if defined(__FreeBSD__) || defined(__NetBSD__)
  8. +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  9. #include <stdlib.h>
  10. #elif defined(_WIN32)
  11. #include <malloc.h>