From aefa40886bbdfcb17848007d0b58ff34fc906c3a Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Tue, 22 Jun 2021 00:29:40 +0000 Subject: [PATCH] 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 ^~~~~~~~~~~~~~~~~ Fixes: e9e1e036 ("anv: implement VK_EXT_physical_device_drm") Reviewed-by: Lionel Landwerlin Part-of: --- 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 #include #include +#ifdef MAJOR_IN_MKDEV +#include +#endif +#ifdef MAJOR_IN_SYSMACROS #include +#endif #include #include #include