mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix ffi usage in named_pipe_unix.lua
This commit is contained in:
parent
c8d760e83e
commit
b5f1698e78
1 changed files with 3 additions and 3 deletions
|
|
@ -22,9 +22,9 @@ local O_NONBLOCK = 0x800
|
|||
local F_GETFL = 3
|
||||
|
||||
local function getError()
|
||||
local err = ffi.errno()
|
||||
local err = FFI.errno()
|
||||
|
||||
return ffi.string(C.strerror(err)).." ("..err..")"
|
||||
return FFI.string(C.strerror(err)).." ("..err..")"
|
||||
end
|
||||
|
||||
local lib = {}
|
||||
|
|
@ -101,4 +101,4 @@ return function(path, mode)
|
|||
end
|
||||
|
||||
return io_stream.new(fd, mode:find('b') ~= nil, lib)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue