summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-03-25 06:40:00 +0100
committerMitya Selivanov <automainint@guattari.tech>2023-03-25 06:40:00 +0100
commit3e9760eef4e212b8afe23f5415ef7a37dbfe067d (patch)
tree665f7ef9baf59a69d8a7ea4dc23f6f8757dbb6b4 /source
parent376910e89aa52c5e8d999d0ae791805bcc2a2e16 (diff)
downloadkit-3e9760eef4e212b8afe23f5415ef7a37dbfe067d.zip
[macOS] Fix for st_mtim
Diffstat (limited to 'source')
-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 == '\\';
}