diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-05 05:13:06 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-05 05:13:06 +0000 |
commit | 658b5db941bcace10daa2d17e8c1158030a4fc8c (patch) | |
tree | c55e02b670e5a49e14bb39e1f2721e91df7feb94 /newlib/libc/include/sys/unistd.h | |
parent | 306c4b6737136c7bb45228c284502eb643ec95ac (diff) | |
download | cygnal-658b5db941bcace10daa2d17e8c1158030a4fc8c.tar.gz cygnal-658b5db941bcace10daa2d17e8c1158030a4fc8c.tar.bz2 cygnal-658b5db941bcace10daa2d17e8c1158030a4fc8c.zip |
* libc/include/sys/stat.h: Use special defines for executable stat bits when
compiling for Cygwin.
* libc/include/sys/unistd.h: Use special define for X_OK when compiling for
Cygwin.
Diffstat (limited to 'newlib/libc/include/sys/unistd.h')
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 42cf56ebf..143129f86 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -137,6 +137,12 @@ int _EXFUN(symlink, (const char *__name1, const char *__name2)); # define W_OK 2 # define X_OK 1 +#if defined (__CYGWIN__) && !defined (__INSIDE_CYGWIN__) +# undef X_OK +# define X_OK _cygwin_X_OK +extern const unsigned _cygwin_X_OK; +#endif + # define SEEK_SET 0 # define SEEK_CUR 1 # define SEEK_END 2 |