mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
std.c.passwd: support macOS and NetBSD
This commit is contained in:
parent
67fc44fc6f
commit
69e304bd51
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user