Commit 69e304bd51

fn ⌃ ⌥ <70830482+FnControlOption@users.noreply.github.com>
2024-08-25 23:45:03
std.c.passwd: support macOS and NetBSD
1 parent 67fc44f
Changed files (1)
lib
std
lib/std/c.zig
@@ -177,7 +177,7 @@ pub const passwd = switch (native_os) {
         dir: ?[*:0]const u8, // home directory
         shell: ?[*:0]const u8, // shell program
     },
-    .openbsd => extern struct {
+    .netbsd, .openbsd, .macos => extern struct {
         name: ?[*:0]const u8, // user name
         passwd: ?[*:0]const u8, // encrypted password
         uid: uid_t, // user uid