From 625d6da5bad8c5e33d8c3214853d0bc35695f76d Mon Sep 17 00:00:00 2001
From: Po Lu <luangruo@yahoo.com>
Date: Sat, 16 Apr 2022 17:13:21 +0800
Subject: [PATCH] Fix build with toolkit scroll bars without XI2

* src/xterm.c (mark_xterm): Fix up ifdefs slightly.
---
 src/xterm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xterm.c b/src/xterm.c
index ae3f2d75179..dc33ba75569 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -23847,7 +23847,7 @@ void
 mark_xterm (void)
 {
   Lisp_Object val;
-#ifdef HAVE_XINPUT2
+#if defined HAVE_XINPUT2 || defined USE_TOOLKIT_SCROLL_BARS
   struct x_display_info *dpyinfo;
   int i;
 #endif
-- 
2.39.5