Browse Source

fix: 未启用network的情况下编译失败

Wendal Chen 3 years ago
parent
commit
d91465ac93
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/network/luat_network_lwip_tcpip_cb.c

+ 4 - 0
app/network/luat_network_lwip_tcpip_cb.c

@@ -8,6 +8,8 @@
 #include "lwip/tcpip.h"
 #include "lwip/tcpip.h"
 #include "lwip/udp.h"
 #include "lwip/udp.h"
 
 
+#ifdef LUAT_USE_NETWORK
+
 #define LUAT_LOG_TAG "net"
 #define LUAT_LOG_TAG "net"
 #include "luat_log.h"
 #include "luat_log.h"
 
 
@@ -2040,3 +2042,5 @@ void net_lwip_set_netif(struct netif *netif)
 	}
 	}
 	return;
 	return;
 }
 }
+
+#endif