diff options
author | Christopher Faylor <me@cgf.cx> | 2003-02-11 01:13:35 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-02-11 01:13:35 +0300 |
commit | 51a46b54ba2d7ea5272cf56a4934d3ce5e766b38 (patch) | |
tree | a956feb979d018f990170c1a581c70563878166d /newlib/libc | |
parent | 14e54d7c97e4b202bbd7eef189afa384887551c3 (diff) |
* libc/include/sys/types.h: Don't define __MS_types__ for Cygwin. Don't define
some types under cygwin.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/sys/types.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index 78b3f552b..9237fda7f 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; |