Skip to content

Commit 283ccc9

Browse files
committed
Bump libc version and use CLOCK_UPTIME_RAW constant
1 parent 4a29682 commit 283ccc9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1972,9 +1972,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
19721972

19731973
[[package]]
19741974
name = "libc"
1975-
version = "0.2.116"
1975+
version = "0.2.119"
19761976
source = "registry+https://github.com/rust-lang/crates.io-index"
1977-
checksum = "565dbd88872dbe4cc8a46e527f26483c1d1f7afa6b884a3bd6cd893d4f98da74"
1977+
checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
19781978
dependencies = [
19791979
"rustc-std-workspace-core",
19801980
]

library/std/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
1515
panic_unwind = { path = "../panic_unwind", optional = true }
1616
panic_abort = { path = "../panic_abort" }
1717
core = { path = "../core" }
18-
libc = { version = "0.2.116", default-features = false, features = ['rustc-dep-of-std'] }
18+
libc = { version = "0.2.119", default-features = false, features = ['rustc-dep-of-std'] }
1919
compiler_builtins = { version = "0.1.69" }
2020
profiler_builtins = { path = "../profiler_builtins", optional = true }
2121
unwind = { path = "../unwind" }

library/std/src/sys/unix/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ mod inner {
286286
impl Instant {
287287
pub fn now() -> Instant {
288288
#[cfg(target_os = "macos")]
289-
const clock_id: clock_t = 8;
289+
const clock_id: clock_t = libc::CLOCK_UPTIME_RAW;
290290
#[cfg(not(target_os = "macos"))]
291291
const clock_id: clock_t = libc::CLOCK_MONOTONIC;
292292
Instant { t: now(clock_id) }

0 commit comments

Comments
 (0)