
27 Jan
2020
27 Jan
'20
12:46 p.m.
On Thu, Jan 23, 2020 at 11:43:03AM +0000, Daniel P. Berrangé wrote:
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.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> --- src/storage/storage_util.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-)
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>