summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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 bc4017eee0..8b8c069b03 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