Fix ioctl undefined in latest IDF

This commit is contained in:
me-no-dev 2017-10-18 10:51:18 +02:00
parent c8ad79e3f3
commit 81f225a4c5

View File

@ -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();