Make zepif dependent on LWIP_UDP config

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Martine Lenders 2018-09-04 14:24:20 +02:00 committed by Simon Goldschmidt
parent fa3826a1d3
commit 264b89764d
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@
#include "lwip/opt.h"
#include "netif/lowpan6.h"
#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */
#if LWIP_IPV6 && LWIP_UDP /* don't build if not configured for use in lwipopts.h */
#include "lwip/netif.h"
@ -76,6 +76,6 @@ err_t zepif_init(struct netif *netif);
}
#endif
#endif /* LWIP_IPV6 */
#endif /* LWIP_IPV6 && LWIP_UDP */
#endif /* LWIP_HDR_ZEPIF_H */

View File

@ -49,7 +49,7 @@
#include "netif/zepif.h"
#if LWIP_IPV6
#if LWIP_IPV6 && LWIP_UDP
#include "netif/lowpan6.h"
#include "lwip/udp.h"
@ -297,4 +297,4 @@ err_ret:
return err;
}
#endif /* LWIP_IPV6 */
#endif /* LWIP_IPV6 && LWIP_UDP */