Skip to content

Commit

Permalink
Work around non-existent types in ffi (yum win32ole works now)
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Feb 9, 2012
1 parent 3279392 commit d18bbf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ruby/1.9/dl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ def dlopen(libname)
module LibC
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_function :malloc, [ :size_t ], :uintptr_t
attach_function :realloc, [ :uintptr_t, :size_t ], :uintptr_t
attach_function :free, [ :uintptr_t ], :void
attach_function :malloc, [ :uint ], :void
attach_function :realloc, [ :uint, :uint ], :uint
attach_function :free, [ :uint ], :void
end

def self.malloc(size)
Expand Down Expand Up @@ -500,4 +500,4 @@ def inspect
end
end

require 'fiddle/jruby'
require 'fiddle/jruby'

0 comments on commit d18bbf7

Please sign in to comment.