On 03/14/2017 05:19 AM, Andreas Grapentin wrote: > Building qemu fails with glibc-2.25 and gcc-6.3.1: > >> qemu/qga/commands-posix.c:656:13: error: In the GNU C Library, "major" is defined >> by . For historical compatibility, it is >> currently defined by as well, but we plan to >> remove this soon. To use "major", include >> directly. If you did not intend to use a system-defined macro >> "major", you should undefine it after including . [-Werror] >> *devmajor = major(st.st_rdev); >> ^~~~~~~~~~~~~~~~~~~~~~~~~~ > > A trivial fix is to #include in the respective files. > > > Andreas Grapentin (1): > major / minor macros are to be included from NACK. is not a universal file, so you can't blindly include it without first checking that it exists. We already fixed the problem correctly in commit 4d04351, which just landed today. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org