Mesa (main): anv: adjust headers for non-GNU after e9e1e0362b6c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 22 14:05:00 UTC 2021
Module: Mesa
Branch: main
Commit: aefa40886bbdfcb17848007d0b58ff34fc906c3a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aefa40886bbdfcb17848007d0b58ff34fc906c3a
Author: Jan Beich <jbeich at FreeBSD.org>
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 <lionel.g.landwerlin at intel.com>
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>
More information about the mesa-commit
mailing list