On Wed, 10 Sep 2008 12:19:07 +0200 Chris Pickett wrote:
> /usr/ports/shells/ksh93/work/src/lib/libcmd/stty.c:318: error: 'TAB1'
> undeclared here (not in a function)
> /usr/ports/shells/ksh93/work/src/lib/libcmd/stty.c:319: error: 'TAB2'
> undeclared here (not in a function)
> mamake [lib/libcmd]: *** exit code 1 making stty.o

freebsd, ca 8.* I believe, does not provide the posix <termios.h>
macros { TAB1 TAB2 }

if this change is intentional then it would be nice to see the rationale
one fix I saw was to #define _KERNEL and include some non-standard header
-- not going to do that

new src will be posted by the weekend
if you can't wait then patch src/lib/libcmd/stty.c with
#ifdef guards around the TAB[012] table entries

 #endif
 #ifdef TABDLY
 { "tabs",      TABS,   O_FLAG, IG,     TABDLY, TAB3, C("Preserve (expand to 
spaces) tabs") },
+#ifdef TAB0
 { "tab0",      BITS,   O_FLAG, IG|SS,  TABDLY, TAB0  },
+#endif
+#ifdef TAB1
 { "tab1",      BITS,   O_FLAG, US,     TABDLY, TAB1  },
+#endif
+#ifdef TAB2
 { "tab2",      BITS,   O_FLAG, US,     TABDLY, TAB2  },
+#endif
 { "tab3",      BITS,   O_FLAG, US,     TABDLY, TAB3  },
 #endif
 #ifdef BSDLY

-- Glenn Fowler -- AT&T Research, Florham Park NJ --


Reply via email to