From 75033ea16f86679164eac5030c230ca50d86d1cf Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 12 Jun 2010 15:28:47 +0000 Subject: [PATCH] * ext/dl/lib/dl.rb: don't require when already loaded. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/dl/lib/dl.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9503a99c7c..5089c4b04d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Jun 13 00:27:24 2010 NARUSE, Yui + + * ext/dl/lib/dl.rb: don't require when already loaded. + Sun Jun 13 00:02:56 2010 NARUSE, Yui * ext/fiddle/closure.c (dealloc): workaround fix for libffi's diff --git a/ext/dl/lib/dl.rb b/ext/dl/lib/dl.rb index 168a18a55e..80d46b685a 100644 --- a/ext/dl/lib/dl.rb +++ b/ext/dl/lib/dl.rb @@ -1,7 +1,7 @@ require 'dl.so' begin - require 'fiddle' + require 'fiddle' unless Object.const_defined?(:Fiddle) rescue LoadError end