diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-08-06 18:26:21 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-08-06 18:26:21 +0000 |
commit | f627504e6b4161c553bdf63487c69a90d93e1f31 (patch) | |
tree | 9936c3a3e9470c72fbb7333e2646db81d66cede6 /newlib/libc | |
parent | 06cc41a63a0ff46e8d8298f1223ae604c43efe75 (diff) | |
download | cygnal-f627504e6b4161c553bdf63487c69a90d93e1f31.tar.gz cygnal-f627504e6b4161c553bdf63487c69a90d93e1f31.tar.bz2 cygnal-f627504e6b4161c553bdf63487c69a90d93e1f31.zip |
* libc/include/sys/stat.h: Move all POSIX-defined symbolic constants
out of `#ifndef _POSIX_SOURCE' guard.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/sys/stat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index 2c69c4852..f00caa661 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -79,12 +79,13 @@ struct stat #define S_ISUID 0004000 /* set user id on execution */ #define S_ISGID 0002000 /* set group id on execution */ -#ifndef _POSIX_SOURCE #define S_ISVTX 0001000 /* save swapped text even after use */ +#ifndef _POSIX_SOURCE #define S_IREAD 0000400 /* read permission, owner */ #define S_IWRITE 0000200 /* write permission, owner */ #define S_IEXEC 0000100 /* execute/search permission, owner */ #define S_ENFMT 0002000 /* enforcement-mode locking */ +#endif /* !_POSIX_SOURCE */ #define S_IFMT _IFMT #define S_IFDIR _IFDIR @@ -94,7 +95,6 @@ struct stat #define S_IFLNK _IFLNK #define S_IFSOCK _IFSOCK #define S_IFIFO _IFIFO -#endif /* !_POSIX_SOURCE */ #ifdef _WIN32 /* The Windows header files define _S_ forms of these, so we do too |