diff --git a/include/sys/types_internal.h b/include/sys/types_internal.h index 6a9bfc74d2..1b602f8dd6 100644 --- a/include/sys/types_internal.h +++ b/include/sys/types_internal.h @@ -3,8 +3,8 @@ #include typedef long blksize_t; -typedef long dev_t; -typedef unsigned long ino_t; +typedef unsigned long long dev_t; +typedef unsigned long long ino_t; typedef unsigned short reclen_t; typedef int gid_t; typedef int uid_t; diff --git a/src/platform/types.rs b/src/platform/types.rs index 253f59d94a..9d80f181e4 100644 --- a/src/platform/types.rs +++ b/src/platform/types.rs @@ -63,7 +63,7 @@ pub type pid_t = c_int; pub type id_t = c_uint; pub type gid_t = c_int; pub type uid_t = c_int; -pub type dev_t = c_long; +pub type dev_t = c_ulonglong; pub type ino_t = c_ulonglong; pub type reclen_t = c_ushort; pub type nlink_t = c_ulong;