From f0748b05dce8120c7216b6c011a87c55dc712f74 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Tue, 9 Apr 2024 17:45:36 +0200 Subject: [PATCH] xwayland: avoid Linux-only headers on non-Linux hw/xwayland/xwayland-glamor-gbm.c:38:10: fatal error: 'linux/dma-buf.h' file not found 38 | #include | ^~~~~~~~~~~~~~~~~ Fixes: 3df236a3d538 ("xwayland: add functions to import and export dma-buf implicit fences") Part-of: --- hw/xwayland/xwayland-glamor-gbm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c index 745a9ed38..570fbc54a 100644 --- a/hw/xwayland/xwayland-glamor-gbm.c +++ b/hw/xwayland/xwayland-glamor-gbm.c @@ -35,9 +35,11 @@ #include #include #include +#if defined(__linux__) #include #include #include +#endif #define MESA_EGL_NO_X11_HEADERS #define EGL_NO_X11