getopt interface is defined in <unistd.h> so use that in preference to externs.

This commit is contained in:
Warner Losh 2000-12-11 21:09:29 +00:00
parent 4323578d73
commit f4d022175f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69875

View File

@ -48,6 +48,7 @@ static char *id =
#include <fcntl.h>
#include <sys/stat.h>
#include <machine/pcvt_ioctl.h>
#include <unistd.h>
#include <paths.h>
#define DEFAULTFD 0
@ -56,10 +57,6 @@ main(argc,argv)
int argc;
char *argv[];
{
extern int optind;
extern int opterr;
extern char *optarg;
struct cursorshape cursorshape;
int fd;
int c;