diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index fc8c25acc..806cc06c7 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -128,13 +128,14 @@ int _EXFUN(readlink, (const char *__path, char *__buf, int __buflen)); int _EXFUN(symlink, (const char *__name1, const char *__name2)); #endif -# define F_OK 0 -# define R_OK 4 -# define W_OK 2 -# define X_OK 1 +#define F_OK 0 +#define R_OK 4 +#define W_OK 2 -#if defined (__CYGWIN__) && !defined (__INSIDE_CYGWIN__) -# undef X_OK +#undef X_OK +#if !defined (__CYGWIN__) || defined (__INSIDE_CYGWIN__) +# define X_OK 1 +#else # define X_OK _cygwin_X_OK extern const unsigned _cygwin_X_OK; #endif |