فهرست منبع

fix: ec618禁用TLS后编译失败

https://gitee.com/openLuat/luatos-soc-2022/issues/I8CX5E
Wendal Chen 2 سال پیش
والد
کامیت
2a5b406138
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      components/network/adapter/luat_network_adapter.h

+ 4 - 4
components/network/adapter/luat_network_adapter.h

@@ -2,10 +2,13 @@
 #define __LUAT_NW_ADAPTER_H__
 #include "luat_base.h"
 // #ifdef LUAT_USE_NETWORK
-#ifdef LUAT_EC7XX_CSDK
+#if defined(LUAT_EC7XX_CSDK) || defined(CHIP_EC618)
 #include "bsp_common.h"
 #endif
 #include "luat_rtos.h"
+#ifndef __BSP_COMMON_H__
+#include "c_common.h"
+#endif
 #ifdef LUAT_USE_TLS
 #include "mbedtls/ssl.h"
 #include "mbedtls/platform.h"
@@ -41,9 +44,6 @@
 #include "lwip/pbuf.h"
 #include "lwip/inet.h"
 #endif
-#ifndef __BSP_COMMON_H__
-#include "c_common.h"
-#endif
 #define MAX_DNS_IP		(4)	//每个URL最多保留4个IP
 
 enum