summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ffi_yajl/ext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi_yajl/ext.rb b/lib/ffi_yajl/ext.rb
index 1441cba..b645972 100644
--- a/lib/ffi_yajl/ext.rb
+++ b/lib/ffi_yajl/ext.rb
@@ -48,7 +48,7 @@ module FFI_Yajl
extend ::FFI::Library
ffi_lib 'dl'
attach_function 'dlopen', :dlopen, [:string, :int], :void
- if Config::CONFIG['host_os'] =~ /linux/i
+ if RbConfig::CONFIG['host_os'] =~ /linux/i
dlopen libpath, 0x102 # linux: RTLD_GLOBAL | RTLD_NOW
else
dlopen libpath, 0