From f81f521a72ccbccf2b66c4b7ce96021de90c9e29 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 22 Aug 2007 10:55:07 +0000 Subject: Updated estream. More changes for Windows. --- common/exechelp.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/exechelp.c') 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 -- cgit v1.2.3