From 1d4ee06fa69c69d97a72d9dd83008ecc8aa99ec5 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 13 Aug 2021 06:38:31 -0700 Subject: 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. --- termios.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3