mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- fix?
This commit is contained in:
parent
40a78687d8
commit
3c4b6c0b97
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue