From 976c01b404220d7ffcdea2203b17d93ccfbb33aa Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 11 Mar 2009 11:13:40 +0000 Subject: [PATCH] * ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol name. [ruby-dev:38150] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/dl/handle.c | 12 +----------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 361ece1ff3..476693f820 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 11 20:13:38 2009 Nobuyoshi Nakada + + * ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol + name. [ruby-dev:38150] + Wed Mar 11 17:26:38 2009 NAKAMURA Usaku * ext/dl/win32/lib/Win32API.rb: call by :stdcall as default. diff --git a/ext/dl/handle.c b/ext/dl/handle.c index bf2d7aa6cc..4647f2a7b3 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -145,17 +145,7 @@ rb_dlhandle_sym(VALUE self, VALUE sym) rb_secure(2); - if( sym == Qnil ){ -#if defined(RTLD_NEXT) - name = RTLD_NEXT; -#else - name = NULL; -#endif - } - else{ - name = StringValuePtr(sym); - } - + name = StringValuePtr(sym); Data_Get_Struct(self, struct dl_handle, dlhandle); if( ! dlhandle->open ){