Selaa lähdekoodia

Make zepif dependent on LWIP_UDP config

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
Martine Lenders 7 vuotta sitten
vanhempi
sitoutus
264b89764d
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 2
      src/include/netif/zepif.h
  2. 2 2
      src/netif/zepif.c

+ 2 - 2
src/include/netif/zepif.h

@@ -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 */

+ 2 - 2
src/netif/zepif.c

@@ -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 */