From 3a011ec4745a2ec5e2d4c5a5fa87d7d50649858c Mon Sep 17 00:00:00 2001 From: dybucc <149513579+dybucc@users.noreply.github.com> Date: Mon, 1 Jun 2026 09:30:36 +0200 Subject: [PATCH] refactor: change type of `time_t` in teeos The type with which it was defined did not reflect the right definition, not by musl standard nor by the actual definitions found in the latest OhOS SDK. Indeed, `c_long` in Linux systems is likely to be defined as a 64-bit integer, but the definition in all of the above, which are mentioned to be used by TEEOS in the rustc target information, define `time_t` specifically as an `_Int64`. Sources are included in the accompanying PR. --- src/teeos/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/teeos/mod.rs b/src/teeos/mod.rs index 89a30a888a5b4..7a5c81554b54a 100644 --- a/src/teeos/mod.rs +++ b/src/teeos/mod.rs @@ -41,7 +41,7 @@ pub type pthread_spinlock_t = c_int; pub type off_t = i64; -pub type time_t = c_long; +pub type time_t = i64; pub type clock_t = c_long;