std.c.passwd: support macOS and NetBSD

This commit is contained in:
fn ⌃ ⌥ 2024-08-25 14:45:03 -07:00 committed by Andrew Kelley
parent 67fc44fc6f
commit 69e304bd51

View File

@ -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