IP forward: ipfwd_dropstats needs to include errno.h

This commit is contained in:
Gregory Nutt 2017-07-10 11:48:49 -06:00
parent 6df0ca5923
commit 2d6868d9d4

View File

@ -39,6 +39,9 @@
#include <nuttx/config.h>
#include <errno.h>
#include <nuttx/net/ip.h>
#include <nuttx/net/netstats.h>
#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 */