From 6e9f52c9a8d51cac7db3b62e799fc32072c86443 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 5 Nov 2017 12:03:31 -0500 Subject: Add support for file birth/creation times on platforms that have it Fixes #19 --- util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index 8f285d3..50f476e 100644 --- a/util.h +++ b/util.h @@ -32,6 +32,11 @@ # define st_atim st_atimespec # define st_ctim st_ctimespec # define st_mtim st_mtimespec +# define st_birthtim st_birthtimespec +#endif + +#if __APPLE__ || __FreeBSD__ || __NetBSD__ +# define BFS_HAVE_ST_BIRTHTIM true #endif #if !defined(FNM_CASEFOLD) && defined(FNM_IGNORECASE) -- cgit v1.2.3