summaryrefslogtreecommitdiff
path: root/ext/fiddle/lib
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 17:59:46 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 17:59:46 +0000
commit1684c2349668e6d8fb2491f209ba7eb9f875e560 (patch)
tree1f5750a3283b4e1708cb4b41f68e01e12e14fe35 /ext/fiddle/lib
parent69a0084541034a9b62e635091b3d489bae0fc407 (diff)
* ext/fiddle/lib/fiddle.rb: only require DL if it hasn't been required
yet. [ruby-core:30095] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle/lib')
-rw-r--r--ext/fiddle/lib/fiddle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/lib/fiddle.rb b/ext/fiddle/lib/fiddle.rb
index bc4017e..8b8c069 100644
--- a/ext/fiddle/lib/fiddle.rb
+++ b/ext/fiddle/lib/fiddle.rb
@@ -1,7 +1,7 @@
require 'fiddle.so'
require 'fiddle/function'
require 'fiddle/closure'
-require 'dl'
+require 'dl' unless Object.const_defined?(:DL)
module Fiddle
Pointer = DL::CPtr