summaryrefslogtreecommitdiff
path: root/ext/fiddle/extconf.rb
diff options
context:
space:
mode:
authorKenta Murata <[email protected]>2021-07-14 15:51:26 +0900
committerNobuyoshi Nakada <[email protected]>2021-07-14 18:56:00 +0900
commit67897762cf3cabad99effd636b50a2db26fb0f3f (patch)
treea3b5391692c2f3b2ca33a480b192eea9491f0dbc /ext/fiddle/extconf.rb
parent169529a0c0973fa925ad3b36f4427d31e802a37e (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.rb5
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