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 <sys/sysmacros.h>. For historical compatibility, it is > currently defined by <sys/types.h> as well, but we plan to > remove this soon. To use "major", include <sys/sysmacros.h> > directly. If you did not intend to use a system-defined macro > "major", you should undefine it after including <sys/types.h>. [-Werror] > *devmajor = major(st.st_rdev); > ^~~~~~~~~~~~~~~~~~~~~~~~~~
A trivial fix is to #include <sys/sysmacros.h> in the respective files. Andreas Grapentin (1): major / minor macros are to be included from <sys/sysmacros.h> hw/9pfs/9p.c | 1 + qga/commands-posix.c | 1 + 2 files changed, 2 insertions(+) -- 2.12.0
