diff --git a/kernel/platform/ffi.rb b/kernel/platform/ffi.rb index d22adf053d..4e2cbd55bb 100644 --- a/kernel/platform/ffi.rb +++ b/kernel/platform/ffi.rb @@ -189,5 +189,14 @@ def initialize(element_type, size, impl_class=nil) # Namespace for holding platform-specific C constants. module FFI::Platform + case Rubinius::OS_TYPE + when :windows + LIBSUFFIX = ".dll" + when :darwin + LIBSUFFIX = ".dylib" + else + LIBSUFFIX = ".so" + end + end