summaryrefslogtreecommitdiffstats
path: root/common/os_calls.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/os_calls.c')
-rw-r--r--common/os_calls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 592d7d6d..d20dc49f 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -2239,7 +2239,7 @@ int
g_file_readable(const char *filename)
{
#if defined(_WIN32)
- return 0; /* TODO: what should be done here? */
+ return _waccess(filename, 04) == 0;
#else
return access(filename, R_OK) == 0;
#endif