From 98955023926734c7ecf79f9b8d004baff5225a78 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 3 Dec 2009 23:20:02 +0100 Subject: Fixes OSPFv2 build. --- proto/ospf/ospf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proto/ospf/ospf.c') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 10713c9..78fa5ee 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -1049,6 +1049,8 @@ ospf_sh_iface(struct proto *p, char *iff) * values */ +#ifdef OSPFv3 + static struct ospf_lsa_header * fake_lsa_from_prefix_lsa(struct ospf_lsa_header *dst, struct ospf_lsa_header *src, struct ospf_lsa_prefix *px) @@ -1062,6 +1064,8 @@ fake_lsa_from_prefix_lsa(struct ospf_lsa_header *dst, struct ospf_lsa_header *sr return dst; } +#endif + static int lsa_compare_for_state(const void *p1, const void *p2) { -- cgit v1.2.3