summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-10-22 19:47:55 -0400
committerTavian Barnes <tavianator@tavianator.com>2016-10-22 19:47:55 -0400
commitdd3c2a552725362cc03d7f7f631a0c24618cf4d2 (patch)
tree95f119043f0d6b089ced6c69931c5bbf9ac8469d /bfs.h
parentb0216b9154915a60e981a0082d77930687475d54 (diff)
downloadbfs-dd3c2a552725362cc03d7f7f631a0c24618cf4d2.tar.xz
Account for non-standard struct stat on macOS.
Diffstat (limited to 'bfs.h')
-rw-r--r--bfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfs.h b/bfs.h
index b03558f..e3090c9 100644
--- a/bfs.h
+++ b/bfs.h
@@ -27,6 +27,13 @@
# define BFS_HOMEPAGE "https://github.com/tavianator/bfs"
#endif
+// Some portability concerns
+#if __APPLE__
+# define st_atim st_atimespec
+# define st_ctim st_ctimespec
+# define st_mtim st_mtimespec
+#endif
+
/**
* A command line expression.
*/