diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-03-25 06:40:00 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-03-25 06:40:00 +0100 |
commit | 3e9760eef4e212b8afe23f5415ef7a37dbfe067d (patch) | |
tree | 665f7ef9baf59a69d8a7ea4dc23f6f8757dbb6b4 | |
parent | 376910e89aa52c5e8d999d0ae791805bcc2a2e16 (diff) | |
download | kit-3e9760eef4e212b8afe23f5415ef7a37dbfe067d.zip |
[macOS] Fix for st_mtim
-rw-r--r-- | source/kit/file.c | 4 |
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 == '\\'; } |