summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/wfile.c2
-rw-r--r--win32/wfile.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/win32/wfile.c b/win32/wfile.c
index 1407d6a32b..3a5118e037 100644
--- a/win32/wfile.c
+++ b/win32/wfile.c
@@ -6,7 +6,7 @@
int readlink(char *file_Name, char *buf_Mem, int buf_Size)
{
/* See if the file exists */
- if (access(file_Name, X_OK) == -1) {
+ if (access(file_Name, WFILE_EXISTS) == -1) {
errno = ENOENT;
} else {
errno = EINVAL;
diff --git a/win32/wfile.h b/win32/wfile.h
index 2e79406478..0105e76eed 100644
--- a/win32/wfile.h
+++ b/win32/wfile.h
@@ -4,7 +4,7 @@
#include <errno.h>
#define access _access
-#define X_OK 0
+#define WFILE_EXISTS 0
#ifndef ENOENT
#define ENOENT 136
#endif