Fix ioctl undefined in latest IDF
This commit is contained in:
parent
c8ad79e3f3
commit
81f225a4c5
@ -274,7 +274,7 @@ int WiFiClient::available()
|
||||
return 0;
|
||||
}
|
||||
int count;
|
||||
int res = ioctl(fd(), FIONREAD, &count);
|
||||
int res = lwip_ioctl_r(fd(), FIONREAD, &count);
|
||||
if(res < 0) {
|
||||
log_e("%d", errno);
|
||||
stop();
|
||||
|
Loading…
Reference in New Issue
Block a user