aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-02-10 22:13:35 +0000
committerChristopher Faylor <me@cgf.cx>2003-02-10 22:13:35 +0000
commit51a46b54ba2d7ea5272cf56a4934d3ce5e766b38 (patch)
treea956feb979d018f990170c1a581c70563878166d /newlib
parent14e54d7c97e4b202bbd7eef189afa384887551c3 (diff)
downloadnewlib-51a46b54ba2d7ea5272cf56a4934d3ce5e766b38.zip
newlib-51a46b54ba2d7ea5272cf56a4934d3ce5e766b38.tar.gz
newlib-51a46b54ba2d7ea5272cf56a4934d3ce5e766b38.tar.bz2
* libc/include/sys/types.h: Don't define __MS_types__ for Cygwin. Don't define
some types under cygwin.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/types.h9
2 files changed, 9 insertions, 5 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 90b2def..0a6191f 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-10 Christopher Faylor <cgf@redhat.com>
+
+ * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin.
+ Don't define some types under cygwin.
+
2003-02-07 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 78b3f55..9237fda 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -46,10 +46,6 @@ __extension__ typedef unsigned long long __uint64_t;
#define _SYS_TYPES_H
#include <sys/_types.h>
-#if defined (_WIN32) || defined (__CYGWIN__)
-#define __MS_types__
-#endif
-
#ifdef __i386__
#if defined (GO32) || defined (__MSDOS__)
#define __MS_types__
@@ -115,6 +111,7 @@ struct itimerspec {
typedef long daddr_t;
typedef char * caddr_t;
+#ifndef __CYGWIN__
#if defined(__MS_types__) || defined(__rtems__)
typedef unsigned long ino_t;
#else
@@ -124,7 +121,7 @@ typedef unsigned long ino_t;
typedef unsigned short ino_t;
#endif
#endif
-
+#endif /*__CYGWIN__*/
#ifdef __MS_types__
typedef unsigned long vm_offset_t;
@@ -170,6 +167,7 @@ typedef int pid_t;
typedef long key_t;
typedef _ssize_t ssize_t;
+#ifndef __CYGWIN__
#ifdef __MS_types__
typedef char * addr_t;
typedef int mode_t;
@@ -184,6 +182,7 @@ typedef unsigned short mode_t;
typedef unsigned int mode_t _ST_INT32;
#endif
#endif /* ! __MS_types__ */
+#endif /*__CYGWIN__*/
typedef unsigned short nlink_t;