summaryrefslogtreecommitdiff
path: root/ext/dl/handle.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-11 11:13:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-11 11:13:40 +0000
commit976c01b404220d7ffcdea2203b17d93ccfbb33aa (patch)
treeffc09f3ec515ef406e58ec1de735da380269c1fb /ext/dl/handle.c
parent612fe10526f0d88318d4c6a57b2f7897b31b1f7b (diff)
* 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
Diffstat (limited to 'ext/dl/handle.c')
-rw-r--r--ext/dl/handle.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index bf2d7aa6cc1..4647f2a7b3c 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 ){