Skip to content

zink: put sysmacros.h include under #ifdef MAJOR_IN_SYSMACROS

Jonathan Gray requested to merge jsg/mesa:zink-sysmacros into main
zink: put sysmacros.h include under #ifdef MAJOR_IN_SYSMACROS

Fixes the build on OpenBSD, where major() is in sys/types and
sys/sysmacros.h does not exist.  Also include sys/mkdev.h if
MAJOR_IN_MKDEV is defined.

Fixes: 6d60115be7c ("zink: Fix enumerate devices when running compositor")

Merge request reports