diff --git a/include/sys/types_internal.h b/include/sys/types_internal.h index dd8cb0006e..9df164ec2a 100644 --- a/include/sys/types_internal.h +++ b/include/sys/types_internal.h @@ -5,8 +5,8 @@ typedef long blksize_t; typedef long dev_t; typedef unsigned long ino_t; -typedef unsigned int gid_t; -typedef unsigned int uid_t; +typedef int gid_t; +typedef int uid_t; typedef int mode_t; typedef unsigned long nlink_t; typedef long long off_t; diff --git a/src/platform/types.rs b/src/platform/types.rs index 999a9505d5..a6fdf693b5 100644 --- a/src/platform/types.rs +++ b/src/platform/types.rs @@ -61,8 +61,8 @@ pub type mode_t = c_int; pub type time_t = c_longlong; pub type pid_t = c_int; pub type id_t = c_uint; -pub type gid_t = c_uint; -pub type uid_t = c_uint; +pub type gid_t = c_int; +pub type uid_t = c_int; pub type dev_t = c_long; pub type ino_t = c_ulonglong; pub type nlink_t = c_ulong;