diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h index 24f41c9e736..9d7d045bcfe 100644 --- a/include/nuttx/fs/hostfs.h +++ b/include/nuttx/fs/hostfs.h @@ -135,7 +135,7 @@ typedef int nuttx_fsid_t[2]; /* These must match the definition in include/time.h */ # ifdef CONFIG_SYSTEM_TIME64 -typedef int64_t nuttx_time_t; +typedef uint64_t nuttx_time_t; # else typedef uint32_t nuttx_time_t; # endif diff --git a/include/sys/types.h b/include/sys/types.h index e2b0745ce68..d19448d0d2f 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -249,7 +249,7 @@ typedef uint16_t sa_family_t; #ifdef CONFIG_SYSTEM_TIME64 typedef uint64_t clock_t; -typedef int64_t time_t; /* Holds time in seconds */ +typedef uint64_t time_t; /* Holds time in seconds */ #else typedef uint32_t clock_t; typedef uint32_t time_t; /* Holds time in seconds */