summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/unistd.h
diff options
context:
space:
mode:
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