Merge pull request #1530 from zhaojuntao/LWIP-SOCK

[components/dfs] Fix inconsistent structure of lwip_sock structure
This commit is contained in:
Bernard Xiong 2018-06-19 10:28:03 +08:00 committed by GitHub
commit c4a50879a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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