From d06a736f41240f6558d97e81b7981d95c6e1d058 Mon Sep 17 00:00:00 2001 From: Ivan Delamer Date: Thu, 19 Mar 2015 10:08:49 -0600 Subject: [PATCH] fix bug #44578: Build fails for IPv6-only configuration --- src/netif/etharp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index a6932521..0d5e2bb0 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -1348,7 +1348,7 @@ ethernet_input(struct pbuf *p, struct netif *netif) { struct eth_hdr* ethhdr; u16_t type; -#if LWIP_ARP || ETHARP_SUPPORT_VLAN +#if LWIP_ARP || ETHARP_SUPPORT_VLAN || LWIP_IPV6 s16_t ip_hdr_offset = SIZEOF_ETH_HDR; #endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */