| author | |
| committer | |
| log | f8991ba3d48a23b7c73079a017d69d3ead23d398 |
| tree | 3d6eee4aaa712711255ff5cc35eea606443c45da |
| parent | 19c96c09f34867eefb607db526aa2d300ca021f7 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os.zig+1-1| ... | ... | @@ -5731,7 +5731,7 @@ pub fn gethostname(name_buffer: *[HOST_NAME_MAX]u8) GetHostNameError![]u8 { |
| 5731 | 5731 | else => |err| return unexpectedErrno(err), |
| 5732 | 5732 | } |
| 5733 | 5733 | } |
| 5734 | if (builtin.os.tag == .linux) { | |
| 5734 | if (builtin.os.tag == .linux or builtin.os.tag == .macos or builtin.os.tag == .freebsd) { | |
| 5735 | 5735 | const uts = uname(); |
| 5736 | 5736 | const hostname = mem.sliceTo(&uts.nodename, 0); |
| 5737 | 5737 | const result = name_buffer[0..hostname.len]; |