diff --git a/net/ipforward/ipfwd_dropstats.c b/net/ipforward/ipfwd_dropstats.c index e86c6e3968a..28d2f4cd87e 100644 --- a/net/ipforward/ipfwd_dropstats.c +++ b/net/ipforward/ipfwd_dropstats.c @@ -39,6 +39,9 @@ #include +#include + +#include #include #include "ipforward/ipforward.h" @@ -171,6 +174,7 @@ void ipv4_dropstats(FAR struct ipv4_hdr_s *ipv4) * ****************************************************************************/ +#ifdef CONFIG_NETDEV_MULTINIC void ipfwd_dropstats(FAR struct forward_s *fwd) { #ifdef CONFIG_NET_IPv4 @@ -190,5 +194,6 @@ void ipfwd_dropstats(FAR struct forward_s *fwd) } #endif } +#endif #endif /* CONFIG_NET_IPFORWARD && CONFIG_NET_STATISTICS */