std.c.passwd: support macOS and NetBSD
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user