changeset 1021:4a92889e2889 v0.4.0

Fix OS X build
author Michael Pavone <pavone@retrodev.com>
date Wed, 04 May 2016 00:50:20 -0700
parents e34334e6c682
children 4803f0246d27
files util.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util.c	Mon May 02 23:08:20 2016 -0700
+++ b/util.c	Wed May 04 00:50:20 2016 -0700
@@ -467,7 +467,11 @@
 	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)