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:
parent
05316c40ac
commit
dff596be18
2
ruby.c
2
ruby.c
@ -529,7 +529,7 @@ runtime_libruby_path(void)
|
|||||||
VALUE fname, path;
|
VALUE fname, path;
|
||||||
const void* addr = (void *)(VALUE)expand_include_path;
|
const void* addr = (void *)(VALUE)expand_include_path;
|
||||||
|
|
||||||
if (!dladdr(addr, &dli)) {
|
if (!dladdr((void *)addr, &dli)) {
|
||||||
return rb_str_new(0, 0);
|
return rb_str_new(0, 0);
|
||||||
}
|
}
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user