From 69e304bd510e3fed2d51582edc6f11127824d7e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?fn=20=E2=8C=83=20=E2=8C=A5?= <70830482+FnControlOption@users.noreply.github.com> Date: Sun, 25 Aug 2024 14:45:03 -0700 Subject: [PATCH] std.c.passwd: support macOS and NetBSD --- lib/std/c.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 4b3bae61d1..2a47628306 100644 --- a/lib/std/c.zig +++ b/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