Module: Mesa Branch: main Commit: aefa40886bbdfcb17848007d0b58ff34fc906c3a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aefa40886bbdfcb17848007d0b58ff34fc906c3a
Author: Jan Beich <[email protected]> Date: Tue Jun 22 00:29:40 2021 +0000 anv: adjust headers for non-GNU after e9e1e0362b6c src/intel/vulkan/anv_device.c:27:10: fatal error: 'sys/sysmacros.h' file not found #include <sys/sysmacros.h> ^~~~~~~~~~~~~~~~~ Fixes: e9e1e036 ("anv: implement VK_EXT_physical_device_drm") Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11516> --- src/intel/vulkan/anv_device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index e329e29075b..1cede6d006d 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -24,7 +24,12 @@ #include <assert.h> #include <stdbool.h> #include <string.h> +#ifdef MAJOR_IN_MKDEV +#include <sys/mkdev.h> +#endif +#ifdef MAJOR_IN_SYSMACROS #include <sys/sysmacros.h> +#endif #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
