Skip to content

Commit 5b08416

Browse files
committed
Fix NFI signature for truffleposix_poll_single_fd()
1 parent 273e281 commit 5b08416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/posix.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def self.attach_function_eagerly(native_name, argument_types, return_type,
215215
attach_function :opendir, [:string], :pointer
216216
attach_function :pipe, [:pointer], :int
217217
# blocking=false for both poll because the timeout needs to be decreased on EINTR
218-
attach_function :truffleposix_poll_single_fd, [:pointer, :long, :int], :int, LIBTRUFFLEPOSIX
218+
attach_function :truffleposix_poll_single_fd, [:int, :int, :int], :int, LIBTRUFFLEPOSIX
219219
attach_function :poll, [:pointer, :long, :int], :int
220220
attach_function :read, [:int, :pointer, :size_t], :ssize_t, LIBC, true
221221
attach_function :readlink, [:string, :pointer, :size_t], :ssize_t

0 commit comments

Comments
 (0)