summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2001-07-27 04:40:04 +0000
committerbrooks <brooks@FreeBSD.org>2001-07-27 04:40:04 +0000
commita67cc01f189d551f0d13355960595604d72bc136 (patch)
tree89e8a98c5f67ee6de68a998510075fbea9948e0e /usr.sbin
parent4cce0e890b816d24421b95713d6ae7ad48f91a13 (diff)
downloadFreeBSD-src-a67cc01f189d551f0d13355960595604d72bc136.zip
FreeBSD-src-a67cc01f189d551f0d13355960595604d72bc136.tar.gz
Remove -traditional from CFLAGS and add unistd.h to header.h so this
actually compiles. Hopefully, this code didn't rely on some weird side effect of -traditional.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pcvt/vttest/Makefile2
-rw-r--r--usr.sbin/pcvt/vttest/esc.c1
-rw-r--r--usr.sbin/pcvt/vttest/header.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pcvt/vttest/Makefile b/usr.sbin/pcvt/vttest/Makefile
index be344b2..f5d6e7b 100644
--- a/usr.sbin/pcvt/vttest/Makefile
+++ b/usr.sbin/pcvt/vttest/Makefile
@@ -3,6 +3,6 @@
PROG= vttest
SRCS= main.c esc.c
-CFLAGS+= -traditional -DUSEMYSTTY
+CFLAGS+= -DUSEMYSTTY
.include <bsd.prog.mk>
diff --git a/usr.sbin/pcvt/vttest/esc.c b/usr.sbin/pcvt/vttest/esc.c
index e52cef2..21baa97 100644
--- a/usr.sbin/pcvt/vttest/esc.c
+++ b/usr.sbin/pcvt/vttest/esc.c
@@ -1,4 +1,3 @@
-#include <unistd.h>
#include "header.h"
#ifndef lint
diff --git a/usr.sbin/pcvt/vttest/header.h b/usr.sbin/pcvt/vttest/header.h
index 300564a..ae1ccaf 100644
--- a/usr.sbin/pcvt/vttest/header.h
+++ b/usr.sbin/pcvt/vttest/header.h
@@ -1,3 +1,4 @@
+/* $FreeBSD$ */
#define VERSION "1.7b 1985-04-19"
/* Choose one of these */
@@ -31,6 +32,7 @@
#include <sgtty.h>
#include <signal.h>
#include <setjmp.h>
+#include <unistd.h>
jmp_buf intrenv;
struct sgttyb sgttyOrg, sgttyNew;
char stdioBuf[BUFSIZ];
OpenPOWER on IntegriCloud