Reuse sock.c logic in mbedtls integration

This commit is contained in:
Sergey Lyubka committed 2022-03-21 14:39:27 +00:00
1 parent 7ef82f5caf
commit 0fbc4b8ff4
3 files changed
+10 -14

No files matched your search

+2 -1
View File
@@ -75,7 +75,8 @@ static void tomgaddr(union usa *usa, struct mg_addr *a, bool is_ip6) {
#endif
}
static bool mg_sock_would_block(void) {
bool mg_sock_would_block(void);
bool mg_sock_would_block(void) {
int err = MG_SOCK_ERRNO;
return err == EINPROGRESS || err == EWOULDBLOCK
#ifndef WINCE