inclusion de unistd.h pour regler le pb de getopt sur Solaris et Linux

This commit is contained in:
Franck Wajsburt 2002-05-02 10:40:18 +00:00
parent e26228b51f
commit 69c1e90d1b
1 changed files with 2 additions and 7 deletions

View File

@ -1,9 +1,9 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
// #include <getopt.h> #include <unistd.h>
#include "exp.h"
#include "ht.h" #include "ht.h"
#include "exp.h"
void usage (char *av[]) void usage (char *av[])
{ {
@ -20,11 +20,6 @@ void getoption (int ac, char *av[], FILE ** expout, FILE ** expin)
{ {
char option; char option;
int verbose; int verbose;
extern char *optarg;
extern long optind;
extern char getopt (long, char **, char *);
*expin = stdin; *expin = stdin;
*expout = stdout; *expout = stdout;