summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2026-05-28 13:07:32 +0800
committerPo Lu <luangruo@yahoo.com>2026-05-28 13:07:32 +0800
commitd8933b9f074776fb3a48d3a30f549448a31e0fca (patch)
treeee06ebe639112abbbc96187c220b29cf346bf2af
parentc3babe4b8966c3ada6305b2af85e24398190a14f (diff)
Fix the MSDOS build
* msdos/sedlibmk.inp (GL_GNULIB_MEMEQ, GL_GNULIB_STREQ) (GL_GNULIB_STRNUL): New substitutions, replacing that of GL_GNULIB_STRINGEQ. * src/term.c (init_tty) [MSDOS]: Assign appropriate value to tty->TN_max_colors. Do not merge to master.
-rw-r--r--msdos/sedlibmk.inp4
-rw-r--r--src/term.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp
index d29fc6ebca7..439f9dfbb95 100644
--- a/msdos/sedlibmk.inp
+++ b/msdos/sedlibmk.inp
@@ -183,13 +183,15 @@ s/@PACKAGE@/emacs/
/^GL_GNULIB_GETRANDOM *=/s/@GL_GNULIB_GETRANDOM@/1/
/^GL_GNULIB_UNISTD_H_GETOPT *=/s/@GL_GNULIB_UNISTD_H_GETOPT@/1/
/^GL_GNULIB_LCHMOD *=/s/@GL_GNULIB_LCHMOD@/1/
+/^GL_GNULIB_MEMEQ *=/s/@GL_GNULIB_MEMEQ@/1/
/^GL_GNULIB_MEMMEM *=/s/@GL_GNULIB_MEMMEM@/1/
/^GL_GNULIB_MEMRCHR *=/s/@GL_GNULIB_MEMRCHR@/1/
/^GL_GNULIB_MEMPCPY *=/s/@GL_GNULIB_MEMPCPY@/1/
/^GL_GNULIB_MKOSTEMP *=/s/@GL_GNULIB_MKOSTEMP@/1/
/^GL_GNULIB_MKTIME *=/s/@GL_GNULIB_MKTIME@/1/
/^GL_GNULIB_SIGDESCR_NP *=/s/@GL_GNULIB_SIGDESCR_NP@/1/
-/^GL_GNULIB_STRINGEQ *=/s/@GL_GNULIB_STRINGEQ@/1/
+/^GL_GNULIB_STREQ *=/s/@GL_GNULIB_STREQ@/1/
+/^GL_GNULIB_STRNUL *=/s/@GL_GNULIB_STRNUL@/1/
/^GL_GNULIB_TIME_R *=/s/@GL_GNULIB_TIME_R@/1/
/^GL_GNULIB_TIMEGM *=/s/@GL_GNULIB_TIMEGM@/1/
/^GL_GNULIB_TIME_RZ *=/s/@GL_GNULIB_TIME_RZ@/1/
diff --git a/src/term.c b/src/term.c
index 354375085e2..52ae4f61814 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4751,6 +4751,7 @@ use the Bourne shell command 'TERM=...; export TERM' (C-shell:\n\
FrameCols (tty) = width;
FrameRows (tty) = height;
tty->char_ins_del_ok = 0;
+ tty->TN_max_colors = 16; /* Must be non-zero for tty-display-color-p. */
init_baud_rate (fileno (tty->input));
}
#endif /* MSDOS */