d2290df0c1
- make this compile on NetBSD/x86_64 [does not work yet] - completely automate the NetBSD header generation. This should make porting to other platforms easier.
31 lines
857 B
Text
31 lines
857 B
Text
$NetBSD: patch-az,v 1.1 2007/04/27 19:45:03 christos Exp $
|
|
|
|
--- term.c.orig 2005-06-01 15:02:38.000000000 -0400
|
|
+++ term.c 2007-04-27 11:31:51.000000000 -0400
|
|
@@ -184,7 +184,7 @@
|
|
long code, arg;
|
|
{
|
|
struct termios tios;
|
|
-#ifndef FREEBSD
|
|
+#ifndef ALLBSD
|
|
struct termio tio;
|
|
#else
|
|
#define TCGETS TIOCGETA
|
|
@@ -216,7 +216,7 @@
|
|
return 0;
|
|
if (abbrev(tcp)) {
|
|
tprintf(", {");
|
|
-#ifndef FREEBSD
|
|
+#ifndef ALLBSD
|
|
printxval(baud_options, tios.c_cflag & CBAUD, "B???");
|
|
#else
|
|
printxval(baud_options, tios.c_ispeed, "B???");
|
|
@@ -237,7 +237,7 @@
|
|
(long) tios.c_iflag, (long) tios.c_oflag);
|
|
tprintf("c_cflags=%#lx, c_lflags=%#lx, ",
|
|
(long) tios.c_cflag, (long) tios.c_lflag);
|
|
-#if !defined(SVR4) && !defined(FREEBSD)
|
|
+#if !defined(SVR4) && !defined(ALLBSD)
|
|
tprintf("c_line=%u, ", tios.c_line);
|
|
#endif
|
|
if (!(tios.c_lflag & ICANON))
|