ext/fiddle/extconf.rb in fiddle-1.0.4 vs ext/fiddle/extconf.rb in fiddle-1.0.5

- old
+ new

@@ -135,11 +135,13 @@ when (libffi_version && (libffi_version <=> [3, 2]) < 0) else have_func('ffi_closure_alloc', ffi_header) end -if libffi - $defs << "-DHAVE_FFI_PREP_CIF_VAR" +if libffi_version + if (libffi_version <=> [3, 0, 11]) >= 0 + $defs << "-DHAVE_FFI_PREP_CIF_VAR" + end else have_func('ffi_prep_cif_var', ffi_header) end have_header 'sys/mman.h'