We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b2a7f8 + cb2a893 commit 0955820Copy full SHA for 0955820
lib/truffle/ffi.rb
@@ -27,6 +27,12 @@ module Platform
27
# so we need to break the cycle.
28
ADDRESS_SIZE = 64
29
LONG_SIZE = 64
30
+
31
+ if ::Truffle::Platform.linux?
32
+ # Set it so FFI::Library finds the right file directly, like on MRI,
33
+ # and does not need to try and fail to load the /lib64/libc.so loader script.
34
+ GNU_LIBC = 'libc.so.6'
35
+ end
36
end
37
38
TypeDefs = {}
lib/truffle/socket/truffle/foreign.rb
@@ -28,7 +28,7 @@ module Truffle
module Socket
module Foreign
extend ::FFI::Library
- ffi_lib ::FFI::Library::LIBC
+ ffi_lib ::FFI::Library::CURRENT_PROCESS
SIZEOF_INT = ::FFI.type_size(:int)
0 commit comments