summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pcvt/ispcvt
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-03-01 06:22:46 +0000
committerimp <imp@FreeBSD.org>2001-03-01 06:22:46 +0000
commitf46c3747188f201a4ef26a8c627ae3c996af84be (patch)
tree9d147642dee31de028765f8a099be643234d5945 /usr.sbin/pcvt/ispcvt
parentd9aa3d164d96efb68aa48555fe3f64d7b68b4c65 (diff)
downloadFreeBSD-src-f46c3747188f201a4ef26a8c627ae3c996af84be.zip
FreeBSD-src-f46c3747188f201a4ef26a8c627ae3c996af84be.tar.gz
Include <unistd.h> for getopt's interface rather than declare things
individually here.
Diffstat (limited to 'usr.sbin/pcvt/ispcvt')
-rw-r--r--usr.sbin/pcvt/ispcvt/ispcvt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/pcvt/ispcvt/ispcvt.c b/usr.sbin/pcvt/ispcvt/ispcvt.c
index d760337..40979ca 100644
--- a/usr.sbin/pcvt/ispcvt/ispcvt.c
+++ b/usr.sbin/pcvt/ispcvt/ispcvt.c
@@ -39,6 +39,7 @@
#include <stdio.h>
#include <err.h>
#include <fcntl.h>
+#include <unistd.h>
#include <machine/pcvt_ioctl.h>
#define DEFAULTFD 0
@@ -47,10 +48,6 @@ main(argc,argv)
int argc;
char *argv[];
{
- extern int optind;
- extern int opterr;
- extern char *optarg;
-
struct pcvtid pcvtid;
struct pcvtinfo pcvtinfo;
int c;
OpenPOWER on IntegriCloud