summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-02-09 10:40:33 -0800
committerEdward Thomson <ethomson@github.com>2016-02-09 10:40:33 -0800
commit9447b9e55a498b93668e43cf58eef33c29cc40df (patch)
tree630f76e2860247bb7347a488c4232745d1ebfef8 /src/common.h
parent0c09753cf50bbd9639c50af61b1cedf50da5f1c6 (diff)
downloadlibgit2-9447b9e55a498b93668e43cf58eef33c29cc40df.tar.gz
xplat: use st_mtimespec everywhere on mac
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 2913baa92..bc4bdd856 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