diff options
| author | MurphyZhao <[email protected]> | 2018-06-13 13:56:38 +0800 |
|---|---|---|
| committer | MurphyZhao <[email protected]> | 2018-06-15 15:34:14 +0800 |
| commit | f31235c824937c3254fbb9046787de467cb50173 (patch) | |
| tree | 3ec01c633e4972d1442957784c983116bb88ece5 /components | |
| parent | 35a0e8e8c9ffddcc8a192a3f2102c38633f09449 (diff) | |
[components/dfs] Fix inconsistent structure of lwip_sock structure, adaptation lwip202 version
Signed-off-by: MurphyZhao <[email protected]>
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/filesystems/net/socket/sys/socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/dfs/filesystems/net/socket/sys/socket.h b/components/dfs/filesystems/net/socket/sys/socket.h index 89e0c5bfa5..4ed96fe222 100644 --- a/components/dfs/filesystems/net/socket/sys/socket.h +++ b/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; |
