Commit 9447b9e55a498b93668e43cf58eef33c29cc40df

Edward Thomson 2016-02-09T10:40:33

xplat: use st_mtimespec everywhere on mac

diff --git a/src/common.h b/src/common.h
index 2913baa..bc4bdd8 100644
--- a/src/common.h
+++ b/src/common.h
@@ -62,6 +62,12 @@
 # endif
 #define GIT_STDLIB_CALL
 
+#ifdef GIT_USE_STAT_ATIMESPEC
+# define st_atim st_atimespec
+# define st_ctim st_ctimespec
+# define st_mtim st_mtimespec
+#endif
+
 # include <arpa/inet.h>
 
 #endif
diff --git a/src/fileops.c b/src/fileops.c
index 6aafd06..150333d 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -13,12 +13,6 @@
 #include "win32/findfile.h"
 #endif
 
-#ifdef GIT_USE_STAT_ATIMESPEC
-#define st_atim st_atimespec
-#define st_ctim st_ctimespec
-#define st_mtim st_mtimespec
-#endif
-
 GIT__USE_STRMAP
 
 int git_futils_mkpath2file(const char *file_path, const mode_t mode)