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,