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_pfpacket.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'isisd/isis_pfpacket.c') diff --git a/isisd/isis_pfpacket.c b/isisd/isis_pfpacket.c index 8752dba5..9e4165e3 100644 --- a/isisd/isis_pfpacket.c +++ b/isisd/isis_pfpacket.c @@ -21,6 +21,7 @@ */ #include +#if ISIS_METHOD == ISIS_METHOD_PFPACKET #include /* the L2 protocols */ #include @@ -371,3 +372,5 @@ isis_send_pdu_p2p (struct isis_circuit *circuit, int level) return ISIS_OK; } + +#endif /* ISIS_METHOD == ISIS_METHOD_PFPACKET */ -- cgit v1.2.1