diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-06-21 21:37:36 -0700 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2020-06-23 22:14:57 +0200 |
commit | 5da52992a3926b36e53d0a5d55955a6ccbc35872 (patch) | |
tree | f5357789ae7d5f1ec798a286b688ca8c3c803200 /src/odhcpd.h | |
parent | 5ce077026b991f49d96464587386f93d92f56385 (diff) |
odhcpd: fix compilation with GCC10
GCC10 mandates the C++ one definition rule, which breaks on multiple
definitions of config. Add the appropriate extern declaration.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/odhcpd.h')
-rw-r--r-- | src/odhcpd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/odhcpd.h b/src/odhcpd.h index 072a148..09013c4 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -44,6 +44,7 @@ struct interface; struct nl_sock; extern struct vlist_tree leases; +extern struct config config; struct odhcpd_event { struct uloop_fd uloop; @@ -139,7 +140,7 @@ struct config { char *dhcp_cb; char *dhcp_statefile; int log_level; -} config; +}; struct lease { |