summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.c b/util.c
index 7714557..75913a4 100644
--- a/util.c
+++ b/util.c
@@ -467,7 +467,11 @@ time_t get_modification_time(char *path)
if (stat(path, &st)) {
return 0;
}
+#ifdef __APPLE__
+ return st.st_mtimespec.tv_sec;
+#else
return st.st_mtim.tv_sec;
+#endif
}
int ensure_dir_exists(char *path)