Subject: [PATCH] Fix x11 with i18n build
From: Randy Taylor <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Tue, 18 Oct 2022 01:46:09 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

With no toolkit, no xrandr, no xinput2 and having i18n, the dpyinfo variable is not created but is used later on, causing the build to fail.

The attached patch fixes the problem.

FYI I should have copyright assignment on file.

From e07823232716f5159239f9215ca3cbadbfa14f9e Mon Sep 17 00:00:00 2001
From: Randy Taylor <[email-masked]>
Date: Mon, 17 Oct 2022 21:29:30 -0400
Subject: [PATCH] ; * src/xterm.c (mark_xterm): Fix x11 with i18n build

---
 src/xterm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xterm.c b/src/xterm.c
index 7c3ab87e87..3075b5af23 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -30281,7 +30281,7 @@ mark_xterm (void)
 {
   Lisp_Object val;
 #if defined HAVE_XINPUT2 || defined USE_TOOLKIT_SCROLL_BARS \
-  || defined HAVE_XRANDR || defined USE_GTK
+  || defined HAVE_XRANDR || defined USE_GTK || defined HAVE_X_I18N
   struct x_display_info *dpyinfo;
 #if defined HAVE_XINPUT2 || defined USE_TOOLKIT_SCROLL_BARS
   int i;
-- 
2.38.0