提交 81f225a4 编写于 作者: M me-no-dev

Fix ioctl undefined in latest IDF

上级 c8ad79e3
...@@ -274,7 +274,7 @@ int WiFiClient::available() ...@@ -274,7 +274,7 @@ int WiFiClient::available()
return 0; return 0;
} }
int count; int count;
int res = ioctl(fd(), FIONREAD, &count); int res = lwip_ioctl_r(fd(), FIONREAD, &count);
if(res < 0) { if(res < 0) {
log_e("%d", errno); log_e("%d", errno);
stop(); stop();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册