Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-03-05 08:13:06 +0300
committerChristopher Faylor <me@cgf.cx>2001-03-05 08:13:06 +0300
commit658b5db941bcace10daa2d17e8c1158030a4fc8c (patch)
treec55e02b670e5a49e14bb39e1f2721e91df7feb94 /newlib/libc/include/sys/unistd.h
parent306c4b6737136c7bb45228c284502eb643ec95ac (diff)
* 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.h6
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