summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-03-03 11:16:25 +0800
committerPo Lu <luangruo@yahoo.com>2022-03-03 11:17:53 +0800
commit39aac09940fa3710302819f9395fe83aa9a5f708 (patch)
treea4d001de665d465c18b7d26add446318e45a7d5b /src/xterm.c
parent890b08e41580a716c2f0b3f1a40ef9b52a19372c (diff)
downloademacs-39aac09940fa3710302819f9395fe83aa9a5f708.tar.gz
Fix Motif build without toolkit scroll bars
* src/xterm.c: Always include Xm.h on Motif.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 47f9d31ad44..6489a18f904 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -597,13 +597,15 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <cairo-xlib.h>
#endif
+#ifdef USE_MOTIF
+#include <Xm/Xm.h>
+#endif
+
#ifdef USE_X_TOOLKIT
/* Include toolkit specific headers for the scroll bar widget. */
-
#ifdef USE_TOOLKIT_SCROLL_BARS
#if defined USE_MOTIF
-#include <Xm/Xm.h> /* For LESSTIF_VERSION */
#include <Xm/ScrollBar.h>
#else /* !USE_MOTIF i.e. use Xaw */