diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-24 07:10:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-24 07:10:12 +0000 |
commit | a59ffccce3bf214fae9932cc42400eeeaec25c6c (patch) | |
tree | 62251d3d21f2b36c2fbc08a3343513934bc06a36 /media-libs/libsdl2/files | |
parent | e33383d972aad8129fd4c1ee2b87f529f6efa8e9 (diff) |
gentoo auto-resync : 24:11:2022 - 07:10:12
Diffstat (limited to 'media-libs/libsdl2/files')
-rw-r--r-- | media-libs/libsdl2/files/libsdl2-2.26.0-wayland.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/media-libs/libsdl2/files/libsdl2-2.26.0-wayland.patch b/media-libs/libsdl2/files/libsdl2-2.26.0-wayland.patch new file mode 100644 index 000000000000..6727a3e4f4bc --- /dev/null +++ b/media-libs/libsdl2/files/libsdl2-2.26.0-wayland.patch @@ -0,0 +1,27 @@ +https://github.com/libsdl-org/SDL/pull/6608 +https://github.com/libsdl-org/SDL/issues/6589 + +From e99b5df49ec3bddd1d72889d682fedfe0da91307 Mon Sep 17 00:00:00 2001 +From: Frank Praznik <frank.praznik@gmail.com> +Date: Wed, 23 Nov 2022 23:11:25 -0500 +Subject: [PATCH] wayland: Fix build when not using the shared Wayland + libraries + +Explicitly include the Wayland protocol headers when statically linking against the Wayland libraries or older system headers might be used instead of the local versions. +--- a/src/video/wayland/SDL_waylanddyn.h ++++ b/src/video/wayland/SDL_waylanddyn.h +@@ -166,6 +166,13 @@ void SDL_WAYLAND_UnloadSymbols(void); + + #else /* SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC */ + ++/* ++ * These must be included before libdecor.h, otherwise the libdecor header ++ * pulls in the system Wayland protocol headers instead of ours. ++ */ ++#include "wayland-client-protocol.h" ++#include "wayland-egl.h" ++ + #ifdef HAVE_LIBDECOR_H + #include <libdecor.h> + #endif + |