Переглянути джерело

Merge pull request #1530 from zhaojuntao/LWIP-SOCK

[components/dfs] Fix inconsistent structure of lwip_sock structure
Bernard Xiong 7 роки тому
батько
коміт
c4a50879a2
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;