aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-26 09:34:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-26 09:34:30 +0000
commitdff596be1832b4e09d2b1ff8e7138cd7d0cd1bc8 (patch)
tree8457a74a3dfec7321918a22d891898e128050429 /ruby.c
parent05316c40ac6872eb2b91b9d08b4b9e36cbac488d (diff)
downloadruby-dff596be1832b4e09d2b1ff8e7138cd7d0cd1bc8.tar.gz
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
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 61fa17af39..7e64d081a9 100644
--- a/ruby.c
+++ b/ruby.c
@@ -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__