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
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r--newlib/libc/include/sys/stat.h4
-rw-r--r--newlib/libc/include/sys/types.h5
2 files changed, 8 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
index bca437707..3ef2291c8 100644
--- a/newlib/libc/include/sys/stat.h
+++ b/newlib/libc/include/sys/stat.h
@@ -22,6 +22,9 @@ extern "C" {
sizes of any of the basic types change (short, int, long) [via a compile
time option]. */
+#ifdef __CYGWIN__
+#include <cygwin/stat.h>
+#else
struct stat
{
dev_t st_dev;
@@ -49,6 +52,7 @@ struct stat
long st_spare4[2];
#endif
};
+#endif
#define _IFMT 0170000 /* type of file */
#define _IFDIR 0040000 /* directory */
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 96d25c4a0..2a12e4e34 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -128,10 +128,13 @@ typedef unsigned long long dev_t;
typedef short dev_t;
#endif
-typedef long off_t;
+#ifndef __CYGWIN__ /* which defines these types in it's own types.h. */
+typedef long off_t;
typedef unsigned short uid_t;
typedef unsigned short gid_t;
+#endif
+
typedef int pid_t;
typedef long key_t;
typedef long ssize_t;