]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stat: port birthtime to Solaris 11
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 18 Mar 2014 23:12:26 +0000 (16:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 18 Mar 2014 23:12:48 +0000 (16:12 -0700)
commitea916c70a5fc47ee6036a05416bc7462fd8dc1cd
tree4f89c7c262335c9920f3ea19ea919819bf540987
parent0093ac8d57a0f1a16fd09d98f6a524dddb6053e7
stat: port birthtime to Solaris 11

Problem reported by Rich Burridge.
* src/stat.c [HAVE_GETATTRAT]: Include <attr.h>, <sys/nvpair.h>.
(print_statfs, print_stat, print_it):
Pass fd, too, for the benefit of get_birthtime.
All uses changed.
(get_birthtime): New function, for porting to Solaris 11.
(print_stat): Use it.

* configure.ac (getattrat, LIB_NVPAIR): New checks.
* src/local.mk (src_stat_LDADD): Add $(LIB_NVPAIR).
configure.ac
src/local.mk
src/stat.c