From f3e587d30a9f65d0c6551ad14095300f6e81672e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 15 Apr 2016 13:44:22 +0200 Subject: Provide POSIX defined fsblkcnt_t and fsfilcnt_t Signed-off-by: Sebastian Huber --- newlib/libc/include/sys/_types.h | 8 ++++++++ newlib/libc/include/sys/types.h | 6 ++++++ 2 files changed, 14 insertions(+) (limited to 'newlib/libc') diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h index 0d48f04ad..88a18b310 100644 --- a/newlib/libc/include/sys/_types.h +++ b/newlib/libc/include/sys/_types.h @@ -30,6 +30,14 @@ typedef long __blkcnt_t; typedef long __blksize_t; #endif +#ifndef __machine_fsblkcnt_t_defined +typedef __uint64_t __fsblkcnt_t; +#endif + +#ifndef __machine_fsfilcnt_t_defined +typedef __uint32_t __fsfilcnt_t; +#endif + #ifndef __machine_off_t_defined typedef long _off_t; #endif diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index 24d90cd34..6d9865cfc 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -127,6 +127,12 @@ typedef char * caddr_t; #define __caddr_t_defined #endif +#ifndef _FSBLKCNT_T_DECLARED /* for statvfs() */ +typedef __fsblkcnt_t fsblkcnt_t; +typedef __fsfilcnt_t fsfilcnt_t; +#define _FSBLKCNT_T_DECLARED +#endif + #ifndef _ID_T_DECLARED typedef __id_t id_t; /* can hold a uid_t or pid_t */ #define _ID_T_DECLARED -- cgit v1.2.3