summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_entry_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/archive_entry_stat.c')
-rw-r--r--lib/libarchive/archive_entry_stat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libarchive/archive_entry_stat.c b/lib/libarchive/archive_entry_stat.c
index d06ee2c..9e5f0c2 100644
--- a/lib/libarchive/archive_entry_stat.c
+++ b/lib/libarchive/archive_entry_stat.c
@@ -64,6 +64,9 @@ archive_entry_stat(struct archive_entry *entry)
* the appropriate conversions get invoked.
*/
st->st_atime = archive_entry_atime(entry);
+#if HAVE_STRUCT_STAT_ST_BIRTHTIME
+ st->st_birthtime = archive_entry_birthtime(entry);
+#endif
st->st_ctime = archive_entry_ctime(entry);
st->st_mtime = archive_entry_mtime(entry);
st->st_dev = archive_entry_dev(entry);
@@ -88,6 +91,9 @@ archive_entry_stat(struct archive_entry *entry)
st->st_ctim.tv_nsec = archive_entry_ctime_nsec(entry);
st->st_mtim.tv_nsec = archive_entry_mtime_nsec(entry);
#endif
+#if HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC
+ st->st_birthtimespec.tv_nsec = archive_entry_birthtime_nsec(entry);
+#endif
/*
* TODO: On Linux, store 32 or 64 here depending on whether
OpenPOWER on IntegriCloud