[前][次][番号順一覧][スレッド一覧]

ruby-changes:51850

From: nobu <ko1@a...>
Date: Thu, 26 Jul 2018 18:34:34 +0900 (JST)
Subject: [ruby-changes:51850] nobu:r64064 (trunk): dladdr() is declared with non-const pointer on Solaris

nobu	2018-07-26 18:34:30 +0900 (Thu, 26 Jul 2018)

  New Revision: 64064

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64064

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

  Modified files:
    trunk/ruby.c
Index: ruby.c
===================================================================
--- ruby.c	(revision 64063)
+++ ruby.c	(revision 64064)
@@ -529,7 +529,7 @@ runtime_libruby_path(void) https://github.com/ruby/ruby/blob/trunk/ruby.c#L529
     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__

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]