diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -69,7 +69,11 @@ static int64_t fileLastModified(const string_view fname) { perror("stat"); exit(1); } +#ifdef __APPLE__ + return st.st_mtimespec.tv_sec * 1000000LL + st.st_mtimespec.tv_nsec / 1000; +#else return st.st_mtim.tv_sec * 1000000LL + st.st_mtim.tv_nsec / 1000; +#endif } static int64_t gettimestamp() { |