瀏覽代碼

[components/dfs] Fix inconsistent structure of lwip_sock structure, adaptation lwip202 version

Signed-off-by: MurphyZhao <d2014zjt@163.com>
MurphyZhao 7 年之前
父節點
當前提交
f31235c824
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      components/dfs/filesystems/net/socket/sys/socket.h

+ 4 - 0
components/dfs/filesystems/net/socket/sys/socket.h

@@ -76,7 +76,11 @@ struct lwip_sock {
   /** error happened for this socket, set by event_callback(), tested by select */
   u16_t errevent;
   /** last error that occurred on this socket */
+#if LWIP_VERSION < 0x2000000
   int err;
+#else
+  u8_t err;
+#endif
   /** counter of how many threads are waiting for this socket using select */
   SELWAIT_T select_waiting;