summaryrefslogtreecommitdiff
path: root/source/kit/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/kit/file.c')
-rw-r--r--source/kit/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/kit/file.c b/source/kit/file.c
index 92d1435..9ad4f16 100644
--- a/source/kit/file.c
+++ b/source/kit/file.c
@@ -18,6 +18,10 @@ enum { PATH_BUF_SIZE = 4096 };
# include <unistd.h>
#endif
+#ifdef __APPLE__
+# define st_mtim st_mtimespec
+#endif
+
static int is_delim(char const c) {
return c == '/' || c == '\\';
}