From 745bf05f58ff203f5e3878574016fb3b9ad5b450 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 2 Feb 2010 21:49:35 +0100 Subject: isisd: change ISIS_METHOD to use C preprocessor this fixes warnings from vtysh extract.pl by making sure the isis method files always 'work'. (previously, extract.pl would grab unselected isis method sources and then complain about missing headers) --- isisd/isis_bpf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'isisd/isis_bpf.c') diff --git a/isisd/isis_bpf.c b/isisd/isis_bpf.c index 8c3602db..05f11386 100644 --- a/isisd/isis_bpf.c +++ b/isisd/isis_bpf.c @@ -21,6 +21,7 @@ */ #include +#if ISIS_METHOD == ISIS_METHOD_BPF #include #include #include @@ -339,3 +340,5 @@ isis_send_pdu_p2p (struct isis_circuit *circuit, int level) { return ISIS_OK; } + +#endif /* ISIS_METHOD == ISIS_METHOD_BPF */ -- cgit v1.2.1