]> 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:06:46 +0000 (19:06 +0200)
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
(cherry picked from commit 54ca644b6e20416587484011f8e649eeddf2cb15)

ldpd/ldpd.c
ldpd/ldpd.h

index dcbcf8ce5007ee39064fc938595ae8e4479b9d03..6a4b90a69f8830c9b5eae61435a688e689f92a52 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 bd7562e5ad5b16b070a778a2165615d59eb1e4b0..a5d1bb717710fb07f60908f0c49a68d0259499d9 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