Commit ce227aa69ee75a29dce779618849699215fc28da

Anonymous Maarten 2022-08-26T01:57:09

wayland: fix build with SDL_WAYLAND_SHARED=OFF/--enable-wayland-shared=no

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/video/wayland/SDL_waylanddyn.c b/src/video/wayland/SDL_waylanddyn.c
index 034df7a..6c91e0b 100644
--- a/src/video/wayland/SDL_waylanddyn.c
+++ b/src/video/wayland/SDL_waylanddyn.c
@@ -85,6 +85,10 @@ WAYLAND_GetSym(const char *fnname, int *pHasModule)
     return fn;
 }
 
+#else
+
+#include <wayland-egl.h>
+
 #endif /* SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC */
 
 /* Define all the function pointers and wrappers... */