patch-ports_unix_mpconfigport_h 468 B

123456789101112
  1. Index: ports/unix/mpconfigport.h
  2. --- ports/unix/mpconfigport.h.orig
  3. +++ ports/unix/mpconfigport.h
  4. @@ -95,7 +95,7 @@ typedef long mp_off_t;
  5. // We need to provide a declaration/definition of alloca()
  6. // unless support for it is disabled.
  7. #if !defined(MICROPY_NO_ALLOCA) || MICROPY_NO_ALLOCA == 0
  8. -#if defined(__FreeBSD__) || defined(__NetBSD__)
  9. +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  10. #include <stdlib.h>
  11. #else
  12. #include <alloca.h>