[PATCH libdrm 1/2] xf86drm: add missing include <sys/sysmacros.h>

Emil Velikov emil.l.velikov at gmail.com
Thu Mar 16 15:09:15 UTC 2017


On 16 March 2017 at 13:56, Eric Engestrom <eric.engestrom at imgtec.com> wrote:
> GCC 7 complains about major(), minor() and makedev():
>     warning: 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>.
>
This (and 2/2) should be handled by the
MAJOR_IN_MKDEV/MAJOR_IN_SYSMACROS blocks.

Any ideas why those are not kicking it ?
-Emil


More information about the dri-devel mailing list