summaryrefslogtreecommitdiff
path: root/tar/bsdtar_platform.h
diff options
context:
space:
mode:
authorBjörn Jacke <bjacke@gmail.com>2009-02-05 18:52:55 -0500
committerBjörn Jacke <bjacke@gmail.com>2009-02-05 18:52:55 -0500
commita0b5f839899670a26472ffbf6c6d118261dd3cf7 (patch)
tree2d9c5d594063f6f37519082a835bc315ef4d447a /tar/bsdtar_platform.h
parente2f46586ad891011d6d642c7db00222232ee7df6 (diff)
downloadlibarchive-a0b5f839899670a26472ffbf6c6d118261dd3cf7.tar.gz
add sub-second timestamp resolution for GNU Hurd
SVN-Revision: 559
Diffstat (limited to 'tar/bsdtar_platform.h')
-rw-r--r--tar/bsdtar_platform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tar/bsdtar_platform.h b/tar/bsdtar_platform.h
index 1a193f65..634c8910 100644
--- a/tar/bsdtar_platform.h
+++ b/tar/bsdtar_platform.h
@@ -146,6 +146,9 @@
#elif HAVE_STRUCT_STAT_ST_UMTIME
#define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_uctime * 1000
#define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_umtime * 1000
+#elif HAVE_STRUCT_STAT_ST_MTIME_USEC
+#define ARCHIVE_STAT_CTIME_NANOS(st) (st)->st_ctime_usec * 1000
+#define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtime_usec * 1000
#else
#define ARCHIVE_STAT_CTIME_NANOS(st) (0)
#define ARCHIVE_STAT_MTIME_NANOS(st) (0)