From 041d1604b526a0b908d4222e39baa0030a94fd8f Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Fri, 2 Dec 2022 07:42:26 -0700 Subject: [PATCH] Make off_t and time_t long long --- include/sys/types_internal.h | 4 ++-- src/platform/types.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/sys/types_internal.h b/include/sys/types_internal.h index 5e533e810..9df164ec2 100644 --- a/include/sys/types_internal.h +++ b/include/sys/types_internal.h @@ -9,11 +9,11 @@ typedef int gid_t; typedef int uid_t; typedef int mode_t; typedef unsigned long nlink_t; -typedef long off_t; +typedef long long off_t; typedef int pid_t; typedef unsigned id_t; typedef long ssize_t; -typedef long time_t; +typedef long long time_t; typedef unsigned int useconds_t; typedef int suseconds_t; typedef long clock_t; diff --git a/src/platform/types.rs b/src/platform/types.rs index 9c773b73a..76f231acb 100644 --- a/src/platform/types.rs +++ b/src/platform/types.rs @@ -54,9 +54,9 @@ pub type wchar_t = i32; pub type wint_t = u32; pub type regoff_t = size_t; -pub type off_t = c_long; +pub type off_t = c_longlong; pub type mode_t = c_int; -pub type time_t = c_long; +pub type time_t = c_longlong; pub type pid_t = c_int; pub type id_t = c_uint; pub type gid_t = c_int; -- GitLab