summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 63256fc..6d3481c 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -643,10 +643,10 @@ bool SystemTools::FileExists(const char* filename)
#ifdef _MSC_VER
# define access _access
#endif
-#ifndef F_OK
-#define F_OK 0
+#ifndef R_OK
+# define R_OK 04
#endif
- if ( access(filename, F_OK) != 0 )
+ if ( access(filename, R_OK) != 0 )
{
return false;
}