summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-10-27 23:22:19 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-10-27 23:22:19 +0000
commit393aee94c02512403fbe69a995a15d6e59a2d187 (patch)
treefabd46e20703c077fc0915e5e101fc3c36eb2ab6 /sys/arch
parent07f37870a0f2ff2e737cdc8a6c2e9b7f8da3f7f0 (diff)
Check for __OpenBSD__. From Matthieu Herrb <Mathieu.Herrb@mipnet.fr>
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/isa/pcvt/Util/fontedit/fontedit.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/arch/i386/isa/pcvt/Util/fontedit/fontedit.c b/sys/arch/i386/isa/pcvt/Util/fontedit/fontedit.c
index 36a3232f097..85f96bc9162 100644
--- a/sys/arch/i386/isa/pcvt/Util/fontedit/fontedit.c
+++ b/sys/arch/i386/isa/pcvt/Util/fontedit/fontedit.c
@@ -30,10 +30,10 @@ void clear_screen();
#ifdef BSD
#include <sys/ioctl.h>
#endif BSD
-#if defined (__NetBSD__) || defined (__FreeBSD__)
+#if defined (__NetBSD__) || defined (__OpenBSD__) || defined (__FreeBSD__)
#include <sys/termios.h>
#include <sys/ioctl.h>
-#endif /* __NetBSD__ || __FreeBSD__ */
+#endif /* __NetBSD__ || __OpenBSD__ || __FreeBSD__ */
#include <signal.h>
#ifdef CURFIX
@@ -107,9 +107,9 @@ struct termio old_stty, new_stty;
#ifdef BSD
struct sgttyb old_stty, new_stty;
#endif BSD
-#if defined (__NetBSD__) || defined (__FreeBSD__)
+#if defined (__NetBSD__) || defined(__OpenBSD__) || defined (__FreeBSD__)
struct termios old_stty, new_stty;
-#endif /* __NetBSD__ || __FreeBSD__ */
+#endif /* __NetBSD__ || __OpenBSD__ || __FreeBSD__ */
FILE * font_file = (FILE *)0;
@@ -130,9 +130,9 @@ interrupt()
#ifdef BSD
ioctl( 0, TIOCSETP, &old_stty );
#endif BSD
-#if defined (__NetBSD__) || defined (__FreeBSD__)
+#if defined (__NetBSD__) || defined(__OpenBSD__) || defined (__FreeBSD__)
ioctl( 0, TIOCSETA, &old_stty );
-#endif /* __NetBSD__ || __FreeBSD__ */
+#endif /* __NetBSD__ || __OpenBSD__ || __FreeBSD__ */
clear_screen();
exit( 0 );
}
@@ -187,9 +187,9 @@ char *argv[];
#ifdef BSD
ioctl( 0, TIOCGETP, &old_stty );
#endif BSD
-#if defined (__NetBSD__) || defined (__FreeBSD__)
+#if defined (__NetBSD__) || defined(__OpenBSD__) || defined (__FreeBSD__)
ioctl( 0, TIOCGETA, &old_stty );
-#endif /* __NetBSD__ || __FreeBSD__ */
+#endif /* __NetBSD__ || __OpenBSD__ || __FreeBSD__ */
signal( SIGINT, (void *) interrupt );
new_stty = old_stty;
#ifdef SYSV
@@ -197,12 +197,12 @@ char *argv[];
new_stty.c_cc[VMIN] = 1;
ioctl( 0, TCSETA, &new_stty );
#endif SYSV
-#if defined (__NetBSD__) || defined (__FreeBSD__)
+#if defined (__NetBSD__) || defined(__OpenBSD__) || defined (__FreeBSD__)
new_stty.c_lflag &= ~ICANON;
new_stty.c_lflag &= ~ECHO;
new_stty.c_cc[VMIN] = 1;
ioctl( 0, TIOCSETA, &new_stty );
-#endif /* __NetBSD__ || __FreeBSD__ */
+#endif /* __NetBSD__ || __OpenBSD__ || __FreeBSD__ */
#ifdef BSD
new_stty.sg_flags |= CBREAK;
new_stty.sg_flags &= ~ECHO;
@@ -218,9 +218,9 @@ char *argv[];
#ifdef BSD
ioctl( 0, TIOCSETP, &old_stty );
#endif BSD
-#if defined (__NetBSD__) || defined (__FreeBSD__)
+#if defined (__NetBSD__) || defined(__OpenBSD__) || defined (__FreeBSD__)
ioctl( 0, TIOCSETA, &old_stty );
-#endif /* __NetBSD__ || __FreeBSD__ */
+#endif /* __NetBSD__ || __OpenBSD__ || __FreeBSD__ */
clear_screen();
/* Overwrite the old file. */