From 5523242eb9a134865d5d3090954bcf0ae4e2f73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 7 Jan 2022 19:21:39 +0100 Subject: [PATCH] wayland/dma-buf: Define fallback EGL_DRM_RENDER_NODE_FILE_EXT If the EGL header is not new enough, it will not contain that relatively new macro definition, so to avoid breaking compilation, define it ourselves for now. Should be possible to remove after some time. Part-of: --- src/wayland/meta-wayland-dma-buf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wayland/meta-wayland-dma-buf.c b/src/wayland/meta-wayland-dma-buf.c index f7b334b49..41840074f 100644 --- a/src/wayland/meta-wayland-dma-buf.c +++ b/src/wayland/meta-wayland-dma-buf.c @@ -67,6 +67,10 @@ #define DRM_FORMAT_MOD_INVALID ((1ULL << 56) - 1) #endif +#ifndef EGL_DRM_RENDER_NODE_FILE_EXT +#define EGL_DRM_RENDER_NODE_FILE_EXT 0x3377 +#endif + #define META_WAYLAND_DMA_BUF_MAX_FDS 4 /* Compatible with zwp_linux_dmabuf_feedback_v1.tranche_flags */