diff --git a/components/lwip/port/include/lwip_default_hooks.h b/components/lwip/port/include/lwip_default_hooks.h index 9ed41be04b37..0e291454884b 100644 --- a/components/lwip/port/include/lwip_default_hooks.h +++ b/components/lwip/port/include/lwip_default_hooks.h @@ -70,6 +70,7 @@ int lwip_hook_ip6_input(struct pbuf *p, struct netif *inp); #define LWIP_HOOK_IP6_INPUT lwip_hook_ip6_input #endif /* CONFIG_LWIP_HOOK_IP6_INPUT_CUSTIOM... */ +struct dhcp; /* forward declaration for the lwip_dhcp_on_extra_option() prototype below */ #if defined(CONFIG_LWIP_HOOK_DHCP_EXTRA_OPTION_CUSTOM) || defined(CONFIG_LWIP_HOOK_DHCP_EXTRA_OPTION_DEFAULT) void lwip_dhcp_on_extra_option(struct dhcp *dhcp, uint8_t state, uint8_t option, uint8_t len, struct pbuf* p, uint16_t offset); #endif /* CONFIG_LWIP_HOOK_DHCP_EXTRA_OPTION_CUSTOM (or DEFAULT) */