diff --git a/Cargo.lock b/Cargo.lock index 2694e65e2..f922088ef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1681,9 +1681,9 @@ checksum = "2c4a545a15244c7d945065b5d392b2d2d7f21526fba56ce51467b06ed445e8f7" [[package]] name = "libc" -version = "0.2.179" +version = "0.2.180" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5a2d376baa530d1238d133232d15e239abad80d05838b4b59354e5268af431f" +checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" [[package]] name = "libffi" diff --git a/Cargo.toml b/Cargo.toml index 13bf531bc..a40744841 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -167,7 +167,7 @@ insta = "1.46" itertools = "0.14.0" is-macro = "0.3.7" junction = "1.3.0" -libc = "0.2.179" +libc = "0.2.180" libffi = "5" log = "0.4.29" nix = { version = "0.30", features = ["fs", "user", "process", "term", "time", "signal", "ioctl", "socket", "sched", "zerocopy", "dir", "hostname", "net", "poll"] } diff --git a/crates/vm/src/stdlib/os.rs b/crates/vm/src/stdlib/os.rs index 415097b90..00f2aea1d 100644 --- a/crates/vm/src/stdlib/os.rs +++ b/crates/vm/src/stdlib/os.rs @@ -918,7 +918,7 @@ pub(super) mod _os { fn from_stat(stat: &StatStruct, vm: &VirtualMachine) -> Self { let (atime, mtime, ctime); #[cfg(any(unix, windows))] - #[cfg(not(any(target_os = "netbsd", target_os = "wasi", target_env = "musl")))] + #[cfg(not(any(target_os = "netbsd", target_os = "wasi")))] { atime = (stat.st_atime, stat.st_atime_nsec); mtime = (stat.st_mtime, stat.st_mtime_nsec); @@ -930,7 +930,7 @@ pub(super) mod _os { mtime = (stat.st_mtime, stat.st_mtimensec); ctime = (stat.st_ctime, stat.st_ctimensec); } - #[cfg(any(target_os = "wasi", target_env = "musl"))] + #[cfg(target_os = "wasi")] { atime = (stat.st_atim.tv_sec, stat.st_atim.tv_nsec); mtime = (stat.st_mtim.tv_sec, stat.st_mtim.tv_nsec);