[libvirt PATCH 10/32] storage: remove use of stat-time.h headers
Pavel Hrdina
phrdina at redhat.com
Mon Jan 27 12:46:52 UTC 2020
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 at redhat.com>
> ---
> src/storage/storage_util.c | 21 ++++++++++++++++-----
> 1 file changed, 16 insertions(+), 5 deletions(-)
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200127/40a99571/attachment-0001.sig>
More information about the libvir-list
mailing list