This commit is contained in:
Jordan Sissel 2013-05-01 06:04:31 +00:00
parent 40a78687d8
commit 3c4b6c0b97

View file

@ -8,15 +8,14 @@ module LogStash::Util
else; RbConfig::CONFIG["host_os"]
end
if UNAME == "linux"
module LibC
module LibC
if UNAME == "linux"
require "ffi"
extend FFI::Library
if UNAME == "linux"
ffi_lib 'c'
ffi_lib 'c'
# Ok so the 2nd arg isn't really a string... but whaatever
attach_function :prctl, [:int, :string, :long, :long, :long], :int
end
# Ok so the 2nd arg isn't really a string... but whaatever
attach_function :prctl, [:int, :string, :long, :long, :long], :int
end
end