From 440bfbb976997abdec905f214c30d001df72cbda Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 23 Oct 2026 17:53:21 +0200 Subject: [PATCH] glamor: add GBM_MAX_PLANES fallback for NetBSD and other platforms GBM_MAX_PLANES is not defined on all platforms (e.g., NetBSD). Add a fallback definition (4 planes is the standard GBM value) to allow the build to succeed on platforms where it's not provided by the system GBM headers. Signed-off-by: Enterprise --- glamor/glamor_egl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index 6fbbeb3c6..ddeb2d515 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -42,6 +42,10 @@ #include #include + +#ifndef GBM_MAX_PLANES +#define GBM_MAX_PLANES 4 +#endif #include "glamor_egl.h" #include "glamor.h"