diff options
author | Simon Ser <contact@emersion.fr> | 2022-11-23 14:29:58 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-11-24 21:50:28 +0000 |
commit | 99134c26b858707ba42851ffe832d53cf27be195 (patch) | |
tree | 473e2331fd9fb0b85077bbeeee538a387bd0a46b /render/vulkan/vulkan.c | |
parent | 8a56490229594dc86a12910e1711ab03ae14c6d1 (diff) |
render: stop pulling <wlr/backend.h>
Let's just forward-declare struct wlr_backend instead.
We need to fixup the Vulkan renderer: it needs makedev(), which
got included by chance via <wlr/backend.h> → <wlr/backend/session.h>
→ <libudev.h>.
Diffstat (limited to 'render/vulkan/vulkan.c')
-rw-r--r-- | render/vulkan/vulkan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/render/vulkan/vulkan.c b/render/vulkan/vulkan.c index c964fe12..64d021c2 100644 --- a/render/vulkan/vulkan.c +++ b/render/vulkan/vulkan.c @@ -12,6 +12,10 @@ #include <wlr/config.h> #include "render/vulkan.h" +#if defined(__linux__) +#include <sys/sysmacros.h> +#endif + static bool check_extension(const VkExtensionProperties *avail, uint32_t avail_len, const char *name) { for (size_t i = 0; i < avail_len; i++) { |