SDL: Fixed build when Wayland isn't available

From 3dde1dd08d0cd854a900f3a7f305e066bfdf88cc Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 26 Oct 2026 17:36:21 -0700
Subject: [PATCH] Fixed build when Wayland isn't available

---
 src/video/wayland/SDL_waylandframebuffer.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/video/wayland/SDL_waylandframebuffer.c b/src/video/wayland/SDL_waylandframebuffer.c
index 613c0f94f5c4f..ac94546019ef6 100644
--- a/src/video/wayland/SDL_waylandframebuffer.c
+++ b/src/video/wayland/SDL_waylandframebuffer.c
@@ -18,6 +18,9 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
+#include "SDL_internal.h"
+
+#ifdef SDL_VIDEO_DRIVER_WAYLAND
 
 #include "SDL_waylandframebuffer.h"
 #include "../../core/unix/SDL_poll.h"
@@ -280,3 +283,5 @@ void Wayland_DestroyWindowFramebuffer(SDL_VideoDevice *_this, SDL_Window *window
     SDL_free(framebuffer->pixels);
     SDL_free(framebuffer);
 }
+
+#endif // SDL_VIDEO_DRIVER_WAYLAND