Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-15 14:44:22 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-04-15 15:51:40 +0300
commitf3e587d30a9f65d0c6551ad14095300f6e81672e (patch)
treed42e2b3e43e41fa2ac2cf494839677b01e515282 /winsup
parentc5d5030aea7585b86a4fe6e3dec068b0e720e8a2 (diff)
Provide POSIX defined fsblkcnt_t and fsfilcnt_t
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/include/cygwin/types.h12
-rw-r--r--winsup/cygwin/include/machine/_types.h8
2 files changed, 8 insertions, 12 deletions
diff --git a/winsup/cygwin/include/cygwin/types.h b/winsup/cygwin/include/cygwin/types.h
index 9e13d0423..faf08bd6e 100644
--- a/winsup/cygwin/include/cygwin/types.h
+++ b/winsup/cygwin/include/cygwin/types.h
@@ -34,18 +34,6 @@ typedef struct timespec timestruc_t;
typedef __loff_t loff_t;
-#ifndef __fsblkcnt_t_defined
-#define __fsblkcnt_t_defined
-/* Keep as is. 32 bit on i386, 64 bit on x86_64. */
-typedef unsigned long fsblkcnt_t;
-#endif /* __fsblkcnt_t_defined */
-
-#ifndef __fsfilcnt_t_defined
-#define __fsfilcnt_t_defined
-/* Keep as is. 32 bit on i386, 64 bit on x86_64. */
-typedef unsigned long fsfilcnt_t;
-#endif /* __fsfilcnt_t_defined */
-
#if defined (__INSIDE_CYGWIN__) && !defined (__x86_64__)
struct __flock32 {
short l_type; /* F_RDLCK, F_WRLCK, or F_UNLCK */
diff --git a/winsup/cygwin/include/machine/_types.h b/winsup/cygwin/include/machine/_types.h
index f09f1ef17..8a2c67935 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;
+
#define __machine_uid_t_defined
typedef __uint32_t __uid_t;