From 23c295ea8b68e5765163f997d5cbb14375b1df3f Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 1 Aug 2024 14:18:48 +0200 Subject: [PATCH] xwayland: Do not include sys/eventfd.h without DRI3 Now that we won't enable DRI3 if is not available, there is not point in trying to include that header without DRI3. That allows to build Xwayland with GLAMOR enabled (without DRI3) on platforms which do not support eventfd. Signed-off-by: Olivier Fourdan Part-of: --- hw/xwayland/xwayland-glamor-gbm.c | 2 ++ hw/xwayland/xwayland-present.c | 2 ++ hw/xwayland/xwayland-window-buffers.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c index 8872bc848..92241bd1e 100644 --- a/hw/xwayland/xwayland-glamor-gbm.c +++ b/hw/xwayland/xwayland-glamor-gbm.c @@ -33,7 +33,9 @@ #include #include #include +#ifdef DRI3 #include +#endif /* DRI3 */ #include #include #include diff --git a/hw/xwayland/xwayland-present.c b/hw/xwayland/xwayland-present.c index 3345d4a0c..f2b4154f7 100644 --- a/hw/xwayland/xwayland-present.c +++ b/hw/xwayland/xwayland-present.c @@ -31,7 +31,9 @@ #endif #include #include +#ifdef DRI3 #include +#endif /* DRI3 */ #include "xwayland-present.h" #include "xwayland-screen.h" diff --git a/hw/xwayland/xwayland-window-buffers.c b/hw/xwayland/xwayland-window-buffers.c index 2bf6c978c..a470ef313 100644 --- a/hw/xwayland/xwayland-window-buffers.c +++ b/hw/xwayland/xwayland-window-buffers.c @@ -39,7 +39,9 @@ #include "dri3.h" #include +#ifdef DRI3 #include +#endif #include "linux-drm-syncobj-v1-client-protocol.h" #define BUFFER_TIMEOUT 1 * 1000 /* ms */