From 03c370d7f3f1be5596d39fb730ef60295d7ca2ab Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 16 Jan 2026 12:42:58 -0700 Subject: [PATCH] Fix dev_t type and add sys/sysmacros.h include from musl --- include/sys/types_internal.h | 4 ++-- src/platform/types.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;