From bcab7fef8401d4d697c035aa11428bfe32a2406b Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sat, 5 Mar 2016 15:18:33 +0100 Subject: [PATCH] netifapi.c: Fix compile when IPv4 is not enabled --- src/api/netifapi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/netifapi.c b/src/api/netifapi.c index 4f1ca5f1..ce0f6f0d 100644 --- a/src/api/netifapi.c +++ b/src/api/netifapi.c @@ -115,6 +115,7 @@ netifapi_netif_add(struct netif *netif, NETIFAPI_VAR_DECLARE(msg); NETIFAPI_VAR_ALLOC(msg); +#if LWIP_IPV4 if (ipaddr == NULL) { ipaddr = IP4_ADDR_ANY; } @@ -124,6 +125,7 @@ netifapi_netif_add(struct netif *netif, if (gw == NULL) { gw = IP4_ADDR_ANY; } +#endif /* LWIP_IPV4 */ NETIFAPI_VAR_REF(msg).function = netifapi_do_netif_add; NETIFAPI_VAR_REF(msg).msg.netif = netif;