Do include <unistd.h> for getopt interface.
Don't extern it.
This commit is contained in:
parent
a66233226c
commit
9ad6473aef
@ -95,6 +95,7 @@ __RCSID("$FreeBSD$");
|
||||
#else
|
||||
#include <varargs.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include "make.h"
|
||||
#include "hash.h"
|
||||
#include "dir.h"
|
||||
@ -161,8 +162,6 @@ MainParseArgs(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
extern int optind;
|
||||
extern char *optarg;
|
||||
char *p;
|
||||
int c;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user