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:
authorCorinna Vinschen <corinna@vinschen.de>2002-06-03 21:48:06 +0400
committerCorinna Vinschen <corinna@vinschen.de>2002-06-03 21:48:06 +0400
commitcc890e89529cdcd2500893097d9a6c52e5eee672 (patch)
tree54631eb42852e46cc7ea5ed6cf77d3936caa6fac
parentb3c297314238dad32354d819bce0e6b94f632a65 (diff)
* libc/include/sys/types.h: Don't define dev_t when compiling for
Cygwin.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/types.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 91dcb7a5d..187bbcfef 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-03 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/include/sys/types.h: Don't define dev_t when compiling for
+ Cygwin.
+
2002-05-31 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/Makefile.am: Add sig.c and sigaction.c. Also
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 2a12e4e34..205317faf 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -125,8 +125,10 @@ typedef int32_t register_t;
/* device numbers are 32-bit major and and 32-bit minor */
typedef unsigned long long dev_t;
#else
+#ifndef __CYGWIN__
typedef short dev_t;
#endif
+#endif
#ifndef __CYGWIN__ /* which defines these types in it's own types.h. */
typedef long off_t;