diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-02-09 20:40:37 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-02-09 20:40:37 +0000 |
commit | f3b39c459b21309195f8a49c85395618563b2f6b (patch) | |
tree | 4886544e03ab28a4ab907fd6356ad5905bf38ea9 /newlib/libc/include/sys/stat.h | |
parent | 52296b850ce86ab911ec44370d721ec2d5d95254 (diff) | |
download | cygnal-f3b39c459b21309195f8a49c85395618563b2f6b.tar.gz cygnal-f3b39c459b21309195f8a49c85395618563b2f6b.tar.bz2 cygnal-f3b39c459b21309195f8a49c85395618563b2f6b.zip |
* libc/include/grp.h: Include Cygwin specific header.
* libc/include/sys/stat.h: Ditto. Don't define `struct stat'
when compiling for Cygwin.
* libc/include/sys/types.h: Don't define off_t, uid_t
and gid_t when compiling for Cygwin.
Diffstat (limited to 'newlib/libc/include/sys/stat.h')
-rw-r--r-- | newlib/libc/include/sys/stat.h | 4 |
1 files changed, 4 insertions, 0 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 */ |