diff options
author | Kenta Murata <[email protected]> | 2021-07-14 15:51:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-07-14 18:56:00 +0900 |
commit | 67897762cf3cabad99effd636b50a2db26fb0f3f (patch) | |
tree | a3b5391692c2f3b2ca33a480b192eea9491f0dbc /ext/fiddle/extconf.rb | |
parent | 169529a0c0973fa925ad3b36f4427d31e802a37e (diff) |
[ruby/fiddle] Add Fiddle::Handle#file_name (https://github.com/ruby/fiddle/pull/88)
https://github.com/ruby/fiddle/commit/4ee1c6fc4b
Diffstat (limited to 'ext/fiddle/extconf.rb')
-rw-r--r-- | ext/fiddle/extconf.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index 8cc98fb8f6..053456d534 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -187,6 +187,7 @@ else end have_header 'sys/mman.h' +have_header 'link.h' if have_header "dlfcn.h" have_library "dl" @@ -196,8 +197,10 @@ if have_header "dlfcn.h" 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 |