diff --git a/src/core/ffi.c b/src/core/ffi.c index 49102b9d..1b77ccea 100644 --- a/src/core/ffi.c +++ b/src/core/ffi.c @@ -32,6 +32,9 @@ #define alloca _alloca #elif defined(JANET_LINUX) #include +#elif !defined(alloca) +/* Last ditch effort to get alloca - works for gcc and clang */ +#define alloca __builtin_alloca #endif #define JANET_FFI_MAX_RECUR 64