From 658b5db941bcace10daa2d17e8c1158030a4fc8c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 5 Mar 2001 05:13:06 +0000 Subject: * 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. --- newlib/libc/include/sys/unistd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'newlib/libc/include/sys/unistd.h') 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 -- cgit v1.2.3