summaryrefslogtreecommitdiffstats
path: root/common/exechelp.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/exechelp.c')
-rw-r--r--common/exechelp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/exechelp.c b/common/exechelp.c
index 6883c2aa4..2de4f750c 100644
--- a/common/exechelp.c
+++ b/common/exechelp.c
@@ -64,6 +64,14 @@
#pragma weak pth_waitpid
#endif
+#ifdef HAVE_W32_SYSTEM
+/* It seems Vista doesn't grok X_OK and so fails access() tests.
+ Previous versions interpreted X_OK as F_OK anyway, so we'll just
+ use F_OK directly. */
+#undef X_OK
+#define X_OK F_OK
+#endif /* HAVE_W32_SYSTEM */
+
#ifdef HAVE_W32_SYSTEM
/* We assume that a HANDLE can be represented by an int which should