From 92f385aaed7dcccde632502711281234ccda958c Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 1 Aug 2016 09:35:59 +0200 Subject: [PATCH] fixed compiling lowpan6 for NO_SYS==1 --- src/include/netif/lowpan6.h | 2 ++ src/netif/lowpan6.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/include/netif/lowpan6.h b/src/include/netif/lowpan6.h index 21552938..4174644b 100644 --- a/src/include/netif/lowpan6.h +++ b/src/include/netif/lowpan6.h @@ -73,7 +73,9 @@ err_t lowpan6_if_init(struct netif *netif); /* pan_id in network byte order. */ err_t lowpan6_set_pan_id(u16_t pan_id); +#if !NO_SYS err_t tcpip_6lowpan_input(struct pbuf *p, struct netif *inp); +#endif /* !NO_SYS */ #ifdef __cplusplus } diff --git a/src/netif/lowpan6.c b/src/netif/lowpan6.c index b073efd4..407848c4 100644 --- a/src/netif/lowpan6.c +++ b/src/netif/lowpan6.c @@ -1186,6 +1186,7 @@ lowpan6_set_pan_id(u16_t pan_id) return ERR_OK; } +#if !NO_SYS /** * Pass a received packet to tcpip_thread for input processing * @@ -1198,5 +1199,6 @@ tcpip_6lowpan_input(struct pbuf *p, struct netif *inp) { return tcpip_inpkt(p, inp, lowpan6_input); } +#endif /* !NO_SYS */ #endif /* LWIP_IPV6 && LWIP_6LOWPAN */