summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-08-13 06:38:31 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-08-13 06:38:31 -0700
commit1d4ee06fa69c69d97a72d9dd83008ecc8aa99ec5 (patch)
treeed1a44b7603b1d69dd7d511c80d65eeb3b8f81c9
parente87aa92d7a380f1d28ddb195aefa8d350d206bfa (diff)
downloadtxr-1d4ee06fa69c69d97a72d9dd83008ecc8aa99ec5.tar.gz
txr-1d4ee06fa69c69d97a72d9dd83008ecc8aa99ec5.tar.bz2
txr-1d4ee06fa69c69d97a72d9dd83008ecc8aa99ec5.zip
termios: FreeBSD has no TAB1 and TAB2.
* termios.c (termios_init): Separate the #ifdef conditions for the TAB* identifiers, instead of assuming that TABDLY covers them all.
-rw-r--r--termios.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/termios.c b/termios.c
index ffed0f1a..7876be26 100644
--- a/termios.c
+++ b/termios.c
@@ -489,9 +489,17 @@ void termios_init(void)
#endif
#ifdef TABDLY
reg_varl(intern(lit("tabdly"), user_package), num_fast(TABDLY));
+#endif
+#ifdef TAB0
reg_varl(intern(lit("tab0"), user_package), num_fast(TAB0));
+#endif
+#ifdef TAB1
reg_varl(intern(lit("tab1"), user_package), num_fast(TAB1));
+#endif
+#ifdef TAB2
reg_varl(intern(lit("tab2"), user_package), num_fast(TAB2));
+#endif
+#ifdef TAB3
reg_varl(intern(lit("tab3"), user_package), num_fast(TAB3));
#endif
#ifdef BSDLY