summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/sys/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include/sys/file.h')
-rw-r--r--winsup/cygwin/include/sys/file.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/include/sys/file.h b/winsup/cygwin/include/sys/file.h
index 79f5f65f5..dacf33429 100644
--- a/winsup/cygwin/include/sys/file.h
+++ b/winsup/cygwin/include/sys/file.h
@@ -24,7 +24,13 @@
#define F_OK 0 /* does file exist */
-#define X_OK 1 /* is it executable by caller */
+#define _X_OK 1 /* is it executable by caller */
+#if defined (__CYGWIN__) || defined (__INSIDE_CYGWIN__)
+# define X_OK _X_OK /* Check for execute permission. */
+#else
+extern const unsigned _cygwin_X_OK;
+# define X_OK _cygwin_X_OK
+#endif
#define W_OK 2 /* is it writable by caller */
#define R_OK 4 /* is it readable by caller */