diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-10-03 11:04:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-03 11:04:41 -0700 |
| commit | 77338947617f5aed0bfe50ca4975d284736a5d90 (patch) | |
| tree | c16c472fe582471051c9d17dbd757704985aed46 /lib/std/process.zig | |
| parent | 47f08605bd3ce01fb38e0d41408f4e09268fce09 (diff) | |
| parent | dd026588d081c639f59696bb1e2f0998f0f10f11 (diff) | |
| download | zig-77338947617f5aed0bfe50ca4975d284736a5d90.tar.gz zig-77338947617f5aed0bfe50ca4975d284736a5d90.zip | |
Merge pull request #17341 from rzezeski/illumos-updates
Illumos/Solaris updates
Diffstat (limited to 'lib/std/process.zig')
| -rw-r--r-- | lib/std/process.zig | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig index fe5a44d3ad..a7f9d8d9d8 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -959,7 +959,18 @@ pub const UserInfo = struct { /// POSIX function which gets a uid from username. pub fn getUserInfo(name: []const u8) !UserInfo { return switch (builtin.os.tag) { - .linux, .macos, .watchos, .tvos, .ios, .freebsd, .netbsd, .openbsd, .haiku, .solaris => posixGetUserInfo(name), + .linux, + .macos, + .watchos, + .tvos, + .ios, + .freebsd, + .netbsd, + .openbsd, + .haiku, + .solaris, + .illumos, + => posixGetUserInfo(name), else => @compileError("Unsupported OS"), }; } |
