From 99c3b56fdaa33199637fc0a72f95bccd12dd81c4 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Wed, 5 Jan 2022 15:21:03 -0600 Subject: [PATCH] Specify type for strict vararg platforms This fix is primarily to get this function working on Apple M1. --- src/main/java/jnr/posix/LibC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/jnr/posix/LibC.java b/src/main/java/jnr/posix/LibC.java index 8e8287e..fb384e7 100644 --- a/src/main/java/jnr/posix/LibC.java +++ b/src/main/java/jnr/posix/LibC.java @@ -169,7 +169,7 @@ public interface LibCSignalHandler { int flock(int fd, int mode); int unlink(CharSequence path); @Variadic(fixedCount = 2) - int open(CharSequence path, int flags, int perm); + int open(CharSequence path, int flags, @u_int32_t int perm); int pipe(@Out int[] fds); int truncate(CharSequence path, long length); int ftruncate(int fd, long offset);