]> xenbits.xensource.com Git - libvirt.git/commit
virfile: Fix build with glibc 2.36
authorCole Robinson <crobinso@redhat.com>
Mon, 1 Aug 2022 19:24:01 +0000 (15:24 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 2 Aug 2022 18:53:53 +0000 (14:53 -0400)
commitc0d9adf220dc0d223330a7bac37b174132d330ba
tree7629b80fa8368dba247b7eb4b74a193a50abd872
parent9493c9b79dc541ec9e0fd73c6d87bdf8d30aaa90
virfile: Fix build with glibc 2.36

With glibc 2.36, sys/mount.h and linux/mount.h conflict:
https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E

virfile.c imports sys/mount.h and linux/fs.h, which pulls in
linux/mount.h.

Manually define the constants we need from linux/fs.h, like was
done in llvm:

https://reviews.llvm.org/rGb379129c4beb3f26223288627a1291739f33af02

Reviewed-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/util/virfile.c