From 8810e143eccc35522de94243b79a4a095ba34d18 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 24 Feb 2026 07:47:35 +0700 Subject: [PATCH] Fix blkcnt_t type --- include/sys/types_internal.h | 2 +- src/platform/types.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;