[quagga-dev 12194] [PATCH 1/7] zebra: fix build with rtadv disabled

Timo Teräs timo.teras at iki.fi
Wed Apr 29 07:42:59 BST 2015


Otherwise we get warning on rtadv_init() prototype not being
defined when compiling rtadv.c (as dummy stub is provided always).

Signed-off-by: Timo Teräs <timo.teras at iki.fi>
---
 zebra/rtadv.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/zebra/rtadv.h b/zebra/rtadv.h
index 8cb933e..1e1aec9 100644
--- a/zebra/rtadv.h
+++ b/zebra/rtadv.h
@@ -59,7 +59,6 @@ struct rtadv_prefix
 };
 
 extern void rtadv_config_write (struct vty *, struct interface *);
-extern void rtadv_init (void);
 
 /* RFC4584 Extension to Sockets API for Mobile IPv6 */
 
@@ -101,4 +100,6 @@ extern const char *rtadv_pref_strs[];
 
 #endif /* RTADV */
 
+extern void rtadv_init (void);
+
 #endif /* _ZEBRA_RTADV_H */
-- 
2.3.6





More information about the Quagga-dev mailing list