On Apr 15 13:44, Sebastian Huber wrote:
>Signed-off-by: Sebastian Huber<sebastian.huber@embedded-brains.de>
>---
> newlib/libc/include/sys/_types.h | 8 ++++++++
> newlib/libc/include/sys/types.h | 6 ++++++
> winsup/cygwin/include/cygwin/types.h | 12 ------------
> winsup/cygwin/include/machine/_types.h | 8 ++++++++
> 4 files changed, 22 insertions(+), 12 deletions(-)
>[...]
>diff --git a/winsup/cygwin/include/machine/_types.h b/winsup/cygwin/include/machine/_types.h
>index f09f1ef..7bc6a21 100644
>--- a/winsup/cygwin/include/machine/_types.h
>+++ b/winsup/cygwin/include/machine/_types.h
>@@ -22,6 +22,14 @@ typedef __int32_t __blksize_t;
> #define __machine_dev_t_defined
> typedef __uint32_t __dev_t;
>
>+#define __machine_fsblkcnt_t_defined
>+/* Keep as is. 32 bit on i386, 64 bit on x86_64. */
>+typedef unsigned long fsblkcnt_t;
>+
>+#define __machine_fsfilcnt_t_defined
>+/* Keep as is. 32 bit on i386, 64 bit on x86_64. */
>+typedef unsigned long fsfilcnt_t;
Typo: The leading underscores were missing in the type names.
I fixed that on the fly while commiting this change.
All patches applied. I added a small followup patch to get rid of the
usage of _mode_t in Cygwin in favor of __mode_t.