diff options
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/sys/_types.h | 4 | ||||
-rw-r--r-- | newlib/libc/include/sys/stat.h | 2 | ||||
-rw-r--r-- | newlib/libc/include/sys/types.h | 5 |
3 files changed, 10 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h index 13362ad09..0d48f04ad 100644 --- a/newlib/libc/include/sys/_types.h +++ b/newlib/libc/include/sys/_types.h @@ -26,6 +26,10 @@ typedef long __blkcnt_t; #endif +#ifndef __machine_blksize_t_defined +typedef long __blksize_t; +#endif + #ifndef __machine_off_t_defined typedef long _off_t; #endif diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index a75c1c24f..94a90c0dd 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -53,7 +53,7 @@ struct stat long st_spare2; time_t st_ctime; long st_spare3; - long st_blksize; + blksize_t st_blksize; blkcnt_t st_blocks; long st_spare4[2]; #endif diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index ac8252ee6..24d90cd34 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -101,6 +101,11 @@ typedef __blkcnt_t blkcnt_t; #define _BLKCNT_T_DECLARED #endif +#ifndef _BLKSIZE_T_DECLARED +typedef __blksize_t blksize_t; +#define _BLKSIZE_T_DECLARED +#endif + #if !defined(__clock_t_defined) && !defined(_CLOCK_T_DECLARED) typedef _CLOCK_T_ clock_t; #define __clock_t_defined |