Created attachment 121866 [details] Patch to include sys/sysmacros.h in mesa I get errors about major and minor not being defined when compiling mesa after upgrading glibc to 2.23 Including sys/sysmacros.h fixes it for me
Exactly what/where is the compiler error? Someone familiar with the gbm code should review this.
FTR mesa is doing nothing wrong here - see bug 94231, for similar libdrm issue. [Somewhat of] a brief: glibc are proposing deprecation of the sys/sysmacros.h include in sys/types.h because of issues caused by _other_ headers. Gentoo have gone ahead and patches/removed the include during their build process. If we get updated documentation, deprecation period and consistency with other libc (musl, dietlibc, uClibc) - sure thing :-) Or an updated documentation at the very least.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.