Skip to content

Commit 81f225a

Browse files
committed
Fix ioctl undefined in latest IDF
1 parent c8ad79e commit 81f225a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ int WiFiClient::available()
274274
return 0;
275275
}
276276
int count;
277-
int res = ioctl(fd(), FIONREAD, &count);
277+
int res = lwip_ioctl_r(fd(), FIONREAD, &count);
278278
if(res < 0) {
279279
log_e("%d", errno);
280280
stop();

0 commit comments

Comments
 (0)