ext/fiddle/extconf.rb in fiddle-1.0.9 vs ext/fiddle/extconf.rb in fiddle-1.1.0

- old
+ new

@@ -185,21 +185,24 @@ else have_func('ffi_prep_cif_var', ffi_header) end have_header 'sys/mman.h' +have_header 'link.h' if have_header "dlfcn.h" have_library "dl" %w{ dlopen dlclose dlsym }.each do |func| abort "missing function #{func}" unless have_func(func) end have_func "dlerror" + have_func "dlinfo" + have_const("RTLD_DI_LINKMAP", "dlfcn.h") elsif have_header "windows.h" - %w{ LoadLibrary FreeLibrary GetProcAddress }.each do |func| + %w{ LoadLibrary FreeLibrary GetProcAddress GetModuleFileName }.each do |func| abort "missing function #{func}" unless have_func(func) end have_library "ws2_32" end @@ -218,13 +221,9 @@ check_signedness(type.downcase, "stddef.h") end else check_signedness(type.downcase, "stddef.h") end -end - -if have_header("ruby/memory_view.h") - have_type("rb_memory_view_t", ["ruby/memory_view.h"]) end if libffi $LOCAL_LIBS.prepend("./#{libffi.a} ").strip! # to exts.mk $INCFLAGS.gsub!(/-I#{libffi.dir}/, '-I$(LIBFFI_DIR)')