diff util.c @ 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 51885857c019
children 86ed81bb574f
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)