summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-11-05 12:03:31 -0500
committerTavian Barnes <tavianator@tavianator.com>2017-11-05 12:04:17 -0500
commit6e9f52c9a8d51cac7db3b62e799fc32072c86443 (patch)
tree2cf2e0acb149421e710ea6b285fdbe7b69d516ba /util.h
parent7f8bacca4c2b1d35bb65ddf8cbf70fadf1adf66e (diff)
downloadbfs-6e9f52c9a8d51cac7db3b62e799fc32072c86443.tar.xz
Add support for file birth/creation times on platforms that have it
Fixes #19
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
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)