summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-06-19 10:28:03 +0800
committerGitHub <[email protected]>2018-06-19 10:28:03 +0800
commitc4a50879a202ef032f121dc003da07012ef291ee (patch)
treeca4070bc480d5841c0307879aab0e65dcc03ee32 /components
parent5efad2a2b86797af7427ab5ee1e7e5f06b6b45b4 (diff)
parentf31235c824937c3254fbb9046787de467cb50173 (diff)
Merge pull request #1530 from zhaojuntao/LWIP-SOCK
[components/dfs] Fix inconsistent structure of lwip_sock structure
Diffstat (limited to 'components')
-rw-r--r--components/dfs/filesystems/net/socket/sys/socket.h4
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;