pb getopt entre solaris et Linux

This commit is contained in:
Franck Wajsburt 2002-04-09 14:59:56 +00:00
parent 2c5b004941
commit c6eaef8413
2 changed files with 8 additions and 2 deletions

View File

@ -4,6 +4,6 @@ bin_PROGRAMS = exp
YACC = @YACC@ -d -v --debug
CFLAGS = @CFLAGS@ @ALLIANCE_CFLAGS@
exp_LDADD = -lm -lfl
exp_LDADD =
exp_SOURCES = exp.h expy.y expl.l ht.c ht.h main.c

View File

@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
// #include <getopt.h>
#include "exp.h"
#include "ht.h"
@ -20,8 +20,14 @@ void getoption (int ac, char *av[], FILE ** expout, FILE ** expin)
{
char option;
int verbose;
extern char *optarg;
extern long optind;
extern char getopt (long, char **, char *);
*expin = stdin;
*expout = stdout;
yydebug = 0;
dico=htinit(10000);