diff --git a/include/sys/types_internal.h b/include/sys/types_internal.h index 1b602f8dd6..91ec5dbbe0 100644 --- a/include/sys/types_internal.h +++ b/include/sys/types_internal.h @@ -20,7 +20,7 @@ typedef int suseconds_t; typedef long clock_t; typedef int clockid_t; typedef void* timer_t; -typedef unsigned long int blkcnt_t; +typedef long long blkcnt_t; typedef unsigned long int fsblkcnt_t; typedef unsigned long int fsfilcnt_t; diff --git a/src/platform/types.rs b/src/platform/types.rs index b7e53dbad1..b980501d93 100644 --- a/src/platform/types.rs +++ b/src/platform/types.rs @@ -68,7 +68,7 @@ pub type ino_t = c_ulonglong; pub type reclen_t = c_ushort; pub type nlink_t = c_ulong; pub type blksize_t = c_long; -pub type blkcnt_t = c_ulong; +pub type blkcnt_t = c_longlong; pub type fsblkcnt_t = c_ulong; pub type fsfilcnt_t = c_ulong;