summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Kerkhof <ruben@rubenkerkhof.com>2020-03-08 20:17:42 +0100
committerRuben Kerkhof <ruben@rubenkerkhof.com>2020-03-08 20:18:11 +0100
commit54ca644b6e20416587484011f8e649eeddf2cb15 (patch)
treedb51e0dad491dbd32a6197dec22d4502472f7e3b
parentec03d9e3a4ab55f57cd8afb00aa0aa0bbc5a2981 (diff)
ldpd: fix another linking issue with GCC-10
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
-rw-r--r--ldpd/ldpd.c2
-rw-r--r--ldpd/ldpd.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c
index 7ab8d56f24..78b1c3e544 100644
--- a/ldpd/ldpd.c
+++ b/ldpd/ldpd.c
@@ -86,6 +86,8 @@ static struct imsgev *iev_lde, *iev_lde_sync;
static pid_t ldpe_pid;
static pid_t lde_pid;
+enum ldpd_process ldpd_process;
+
#define LDP_DEFAULT_CONFIG "ldpd.conf"
#define LDP_VTY_PORT 2612
diff --git a/ldpd/ldpd.h b/ldpd/ldpd.h
index bd7562e5ad..a5d1bb7177 100644
--- a/ldpd/ldpd.h
+++ b/ldpd/ldpd.h
@@ -446,7 +446,7 @@ DECLARE_QOBJ_TYPE(l2vpn)
#define L2VPN_TYPE_VPLS 2
/* ldp_conf */
-enum ldpd_process {
+extern enum ldpd_process {
PROC_MAIN,
PROC_LDP_ENGINE,
PROC_LDE_ENGINE