]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: remove use of stat-time.h headers
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 22 Jan 2020 11:38:28 +0000 (11:38 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 29 Jan 2020 14:51:39 +0000 (14:51 +0000)
commitd575590c52b519f1f0343304526dda7cf560b6d0
treef6ac14c2d4df4eedd19c53a4c067d4983095704f
parent47744e0694fc510b1efc3dbefb5b54e782757f7f
storage: remove use of stat-time.h headers

The gnulib stat-time.h header provides wrapper functions
to hide the differences in 'struct stat' between various
platforms.

Linux and FreeBSD support the same names, except for
birthtime which Linux only provides in the new 'statx()'
syscall we're not using. macOS has completely different
naming. Since we only rely on this code in one place
we just use conditionals at time of need.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/storage/storage_util.c