summaryrefslogtreecommitdiffstatshomepage
path: root/windows/realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows/realpath.c')
-rw-r--r--windows/realpath.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/windows/realpath.c b/windows/realpath.c
index 2fd86aa272..c0ed6b84da 100644
--- a/windows/realpath.c
+++ b/windows/realpath.c
@@ -26,11 +26,7 @@
#include <stdlib.h>
#include <errno.h>
-#include <io.h>
-
-#ifndef R_OK
- #define R_OK 4
-#endif
+#include <unistd.h>
// Make sure a path only has forward slashes.
char *to_unix_path(char *p) {