diff --git a/ext/fiddle/closure.c b/ext/fiddle/closure.c index 2044c836ea0f..40cee55e9a9e 100644 --- a/ext/fiddle/closure.c +++ b/ext/fiddle/closure.c @@ -13,6 +13,10 @@ typedef struct { ffi_type **argv; } fiddle_closure; +#if defined(__OpenBSD__) +# define USE_FFI_CLOSURE_ALLOC 0 +#endif + #if defined(USE_FFI_CLOSURE_ALLOC) #elif !defined(HAVE_FFI_CLOSURE_ALLOC) # define USE_FFI_CLOSURE_ALLOC 0