Compatibility fix with bison 2.6
Bison 2.6 now declares yyparse in the generated header. This fix ensure it still works for older versions. Reported in Debian#710614
This commit is contained in:
parent
71801fb3d2
commit
8b98c3746e
@ -122,7 +122,7 @@ static int add_server(bip_t *bip, struct server *s, list_t *data)
|
|||||||
#define ERRBUFSZ 128
|
#define ERRBUFSZ 128
|
||||||
|
|
||||||
extern list_t *root_list;
|
extern list_t *root_list;
|
||||||
int yyparse();
|
extern int yyparse();
|
||||||
|
|
||||||
void conf_die(bip_t *bip, char *fmt, ...)
|
void conf_die(bip_t *bip, char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
int linec;
|
int linec;
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
extern list_t *root_list;
|
extern list_t *root_list;
|
||||||
void yyparse(void);
|
extern int yyparse(void);
|
||||||
void free_conf(list_t*);
|
void free_conf(list_t*);
|
||||||
int conf_error;
|
int conf_error;
|
||||||
typedef struct bip bip_t;
|
typedef struct bip bip_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user