dladdr() is declared with non-const pointer on Solaris

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-07-26 09:34:30 +00:00
parent 05316c40ac
commit dff596be18

2
ruby.c
View File

@ -529,7 +529,7 @@ runtime_libruby_path(void)
VALUE fname, path;
const void* addr = (void *)(VALUE)expand_include_path;
if (!dladdr(addr, &dli)) {
if (!dladdr((void *)addr, &dli)) {
return rb_str_new(0, 0);
}
#ifdef __linux__