misc non-posix fixes

This commit is contained in:
Jarred Sumner
2023-08-19 20:14:29 -07:00
parent 53c755467b
commit eec5bfb23a
2 changed files with 3 additions and 3 deletions

View File

@@ -186,12 +186,12 @@ pub fn build(b: *Build) !void {
else
"root.zig";
const min_version: std.SemanticVersion = if (target.getOsTag() != .freestanding)
const min_version: std.SemanticVersion = if (target.getOsTag() != .freestanding and !target.isWindows())
target.getOsVersionMin().semver
else
.{ .major = 0, .minor = 0, .patch = 0 };
const max_version: std.SemanticVersion = if (target.getOsTag() != .freestanding)
const max_version: std.SemanticVersion = if (target.getOsTag() != .freestanding and !target.isWindows())
target.getOsVersionMax().semver
else
.{ .major = 0, .minor = 0, .patch = 0 };

View File

@@ -20,7 +20,7 @@ const log = bun.Output.scoped(.SYS, false);
pub const syslog = log;
// On Linux AARCh64, zig is missing stat & lstat syscalls
const use_libc = (Environment.isLinux and Environment.isAarch64) or Environment.isMac;
const use_libc = !(Environment.isLinux and Environment.isX64);
pub const system = if (Environment.isLinux) linux else @import("root").bun.AsyncIO.darwin;
pub const S = struct {
pub usingnamespace if (Environment.isLinux) linux.S else std.os.S;