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>
#include <libubox/uloop.h>
#include "odhcpd.h"
-
-
static int ioctl_sock = -1;
static int urandom_fd = -1;
struct interface;
struct nl_sock;
extern struct vlist_tree leases;
+extern struct config config;
struct odhcpd_event {
struct uloop_fd uloop;
char *dhcp_cb;
char *dhcp_statefile;
int log_level;
-} config;
+};
struct lease {