From dd3c2a552725362cc03d7f7f631a0c24618cf4d2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 22 Oct 2016 19:47:55 -0400 Subject: Account for non-standard struct stat on macOS. --- bfs.h | 7 +++++++ 1 file changed, 7 insertions(+) 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. */ -- cgit v1.2.3