]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: fix another linking issue with GCC-10
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 8 Mar 2020 19:17:42 +0000 (20:17 +0100)
committerDavid Lamparter <equinox@diac24.net>
Thu, 23 Apr 2020 17:13:46 +0000 (19:13 +0200)
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
(cherry picked from commit 54ca644b6e20416587484011f8e649eeddf2cb15)

ldpd/ldpd.c
ldpd/ldpd.h

index a6f0519bd72940330c1524ba0ff13ce3c6fab1ba..4aee05395b6526a3f06e07a7ac3d04a581956abb 100644 (file)
@@ -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
 
index 91135055817fa1cb8b477383b554bfe2ef1c1888..3cfb52e221f782cd8080c8d3c2085eda6fd2080b 100644 (file)
@@ -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