diff options
author | Francis Dupont <fdupont@isc.org> | 2020-07-03 15:24:32 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2020-07-03 15:24:32 +0200 |
commit | c666652e10e28558ed7b2b0025bf193478e98030 (patch) | |
tree | f05d49c501d1bfac55020bd86c2d1c8789394ba2 /keama | |
parent | c2147767a52405de05f5bcb2b78965d94dd22584 (diff) | |
download | isc-dhcp-c666652e10e28558ed7b2b0025bf193478e98030.tar.gz |
Fixed gcc10 build116-keama-compilation-on-fedora-32-fails
Diffstat (limited to 'keama')
-rw-r--r-- | keama/ChangeLog.md | 6 | ||||
-rw-r--r-- | keama/keama.c | 3 | ||||
-rw-r--r-- | keama/keama.h | 8 |
3 files changed, 14 insertions, 3 deletions
diff --git a/keama/ChangeLog.md b/keama/ChangeLog.md index fd386d9e..dc097e7f 100644 --- a/keama/ChangeLog.md +++ b/keama/ChangeLog.md @@ -1,3 +1,8 @@ +*4 [build] fdupont + + Fixed build by gcc10. + (Gitlab #116) + * 3 [doc] fdupont New documentation including this file. @@ -14,5 +19,6 @@ LEGEND * [bug] Bug fix. +* [build] Build change. * [doc] Update to documentation. * [func] New feature. diff --git a/keama/keama.c b/keama/keama.c index e2c41c32..d6573dbc 100644 --- a/keama/keama.c +++ b/keama/keama.c @@ -47,6 +47,9 @@ usage(const char *sfmt, const char *sarg) { exit(1); } +enum resolve resolve; +struct parses parses; + int local_family = 0; char *hook_library_path = NULL; char *input_file = NULL; diff --git a/keama/keama.h b/keama/keama.h index 8dbb7eb1..e09f4575 100644 --- a/keama/keama.h +++ b/keama/keama.h @@ -35,7 +35,9 @@ enum resolve { perform = 0, /* resolve */ fatal, /* raise a fatal error */ pass /* pass the string wth a warning */ -} resolve; +}; + +extern enum resolve resolve; /* From includes/dhcp.h */ @@ -58,8 +60,6 @@ extern int local_family; /* A parsing context. */ -TAILQ_HEAD(parses, parse) parses; - struct parse { int lexline; int lexchar; @@ -120,6 +120,8 @@ struct parse { }; +extern TAILQ_HEAD(parses, parse) parses; + #define PARAMETER 0 #define TOPLEVEL 1 #define ROOT_GROUP 2 |