diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-26 09:34:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-26 09:34:30 +0000 |
commit | dff596be1832b4e09d2b1ff8e7138cd7d0cd1bc8 (patch) | |
tree | 8457a74a3dfec7321918a22d891898e128050429 | |
parent | 05316c40ac6872eb2b91b9d08b4b9e36cbac488d (diff) | |
download | ruby-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
-rw-r--r-- | ruby.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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__ |