Improve compatibility with old flex and fix build with GCC.

This commit is contained in:
Jung-uk Kim 2013-05-22 17:47:45 +00:00
parent 818fe953ac
commit eb8b73d6ae
3 changed files with 5 additions and 3 deletions

View File

@ -259,7 +259,4 @@ struct hast_resource {
struct hastd_config *yy_config_parse(const char *config, bool exitonerror);
void yy_config_free(struct hastd_config *config);
void yyerror(const char *);
int yylex(void);
#endif /* !_HAST_H_ */

View File

@ -75,6 +75,8 @@ static char depth1_provname[PATH_MAX];
static char depth1_localpath[PATH_MAX];
static int depth1_metaflush;
extern void yyerror(const char *);
extern int yylex(void);
extern void yyrestart(FILE *);
static int isitme(const char *name);

View File

@ -42,6 +42,9 @@ int depth;
int lineno;
#define DP do { } while (0)
#define YY_DECL int yylex(void)
extern int yylex(void);
%}
%option noinput