Skip to content

Commit 1b6fc19

Browse files
committed
Replace CLOCK_REALTIME with CLOCK_BOOTTIME
1 parent edf2ec3 commit 1b6fc19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/trusty.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ s! {
6262
pub const PROT_READ: i32 = 1;
6363
pub const PROT_WRITE: i32 = 2;
6464

65-
pub const CLOCK_REALTIME: clockid_t = 0;
65+
// Trusty only supports `CLOCK_BOOTTIME`.
66+
pub const CLOCK_BOOTTIME: clockid_t = 7;
6667

6768
pub const STDOUT_FILENO: ::c_int = 1;
6869
pub const STDERR_FILENO: ::c_int = 2;

0 commit comments

Comments
 (0)