diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-04-21 05:13:42 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-04-21 05:13:42 +0000 |
commit | bd0115839307ddffc9d78447ec3ac888a653ee2c (patch) | |
tree | 542291c8e776fd49a3947621c20eff5ac8bd66ba /lib/libarchive/archive_entry.c | |
parent | c7a52361b07ca43e22873e66ca4b6451f274228f (diff) | |
download | FreeBSD-src-bd0115839307ddffc9d78447ec3ac888a653ee2c.zip FreeBSD-src-bd0115839307ddffc9d78447ec3ac888a653ee2c.tar.gz |
More portability improvements, thanks to Juergen Lock.
High-resolution mtime/ctime/atime is not POSIX-standard, so hide
set/get of high-resolution time fields behind easily-mutable macros.
That makes it easier to change how those fields are accessed.
Diffstat (limited to 'lib/libarchive/archive_entry.c')
-rw-r--r-- | lib/libarchive/archive_entry.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libarchive/archive_entry.c b/lib/libarchive/archive_entry.c index 7ea63fc..d0fc238 100644 --- a/lib/libarchive/archive_entry.c +++ b/lib/libarchive/archive_entry.c @@ -369,11 +369,10 @@ archive_entry_mtime(struct archive_entry *entry) return (entry->ae_stat.st_mtime); } - long archive_entry_mtime_nsec(struct archive_entry *entry) { - return (entry->ae_stat.st_mtimespec.tv_nsec); + return (ARCHIVE_STAT_MTIME_NANOS(&entry->ae_stat)); } const char * |