File bsc1251959_CVE-2025-62230_0001-xkb-Make-the-RT_XKBCLIENT-resource-private.patch of Package xwayland

@@ -, +, @@ 
---
 xkb/xkb.c         | 2 +-
 xkb/xkbsrv_priv.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
Index: xwayland-24.1.5/xkb/xkb.c
===================================================================
--- xwayland-24.1.5.orig/xkb/xkb.c
+++ xwayland-24.1.5/xkb/xkb.c
@@ -50,7 +50,7 @@ int XkbKeyboardErrorCode;
 CARD32 xkbDebugFlags = 0;
 static CARD32 xkbDebugCtrls = 0;
 
-static RESTYPE RT_XKBCLIENT;
+RESTYPE RT_XKBCLIENT = 0;
 
 /***====================================================================***/
 
Index: xwayland-24.1.5/include/xkbsrv.h
===================================================================
--- xwayland-24.1.5.orig/include/xkbsrv.h
+++ xwayland-24.1.5/include/xkbsrv.h
@@ -58,6 +58,8 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include "inputstr.h"
 #include "events.h"
 
+extern RESTYPE RT_XKBCLIENT;
+
 typedef struct _XkbInterest {
     DeviceIntPtr dev;
     ClientPtr client;
openSUSE Build Service is sponsored by