From 4769dc5473a1e3e5b93e219b145d0072dce9886e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 15 Oct 2026 03:03:11 +0200 Subject: [PATCH] std.c: fix getdirentries() signature for dragonfly --- lib/std/c.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 43fcc1bcd07b4103777e92834f5696d624af9b86..baac4fc4c031c5626bbc220b10667d580c26c700 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -11874,7 +11874,7 @@ const private = struct { extern "c" fn fork() c_int; extern "c" fn fstat(fd: fd_t, buf: *Stat) c_int; extern "c" fn fstatat(dirfd: fd_t, path: [*:0]const u8, buf: *Stat, flag: u32) c_int; - extern "c" fn getdirentries(fd: fd_t, buf_ptr: [*]u8, nbytes: usize, basep: *i64) isize; + extern "c" fn getdirentries(fd: fd_t, buf_ptr: [*]u8, nbytes: usize, basep: *i64) if (native_os == .dragonfly) c_int else isize; extern "c" fn getdents(fd: c_int, buf_ptr: [*]u8, nbytes: usize) switch (native_os) { else => c_int, .freebsd => isize, -- 2.54.0