From 65bb7a623cbfb2834af8b778f2d16c48dc90432f Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 18 Nov 2015 08:18:04 +0100 Subject: [PATCH] snmp.h: Add missing #if around function prototypes --- src/include/lwip/snmp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/lwip/snmp.h b/src/include/lwip/snmp.h index 296875f0..07368cc6 100644 --- a/src/include/lwip/snmp.h +++ b/src/include/lwip/snmp.h @@ -138,14 +138,18 @@ void mib2_remove_arp_entry(struct netif *ni, ip4_addr_t *ip); #endif /* LWIP_IPV4 && LWIP_ARP */ /* IP */ +#if LWIP_IPV4 void mib2_add_ip4(struct netif *ni); void mib2_remove_ip4(struct netif *ni); void mib2_add_route_ip4(u8_t dflt, struct netif *ni); void mib2_remove_route_ip4(u8_t dflt, struct netif *ni); +#endif /* LWIP_IPV4 */ /* UDP */ +#if LWIP_UDP void mib2_udp_bind(struct udp_pcb *pcb); void mib2_udp_unbind(struct udp_pcb *pcb); +#endif /* LWIP_UDP */ #else /* LWIP_MIB2_CALLBACKS */ /* LWIP_MIB2_CALLBACKS support not available */