diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-05-04 00:50:20 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-05-04 00:50:20 -0700 |
commit | 16d9a8bff8b700b50a5e2f68af3b50d1515043be (patch) | |
tree | 9ea65942943e730ff0ad1131c305631296ee8d84 /util.c | |
parent | dd54326136cdefda96bce7cdff31d0938162377b (diff) |
Fix OS X build
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |