From 54ca644b6e20416587484011f8e649eeddf2cb15 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 8 Mar 2020 20:17:42 +0100 Subject: [PATCH] ldpd: fix another linking issue with GCC-10 Signed-off-by: Ruben Kerkhof --- ldpd/ldpd.c | 2 ++ ldpd/ldpd.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5