mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
fix host emulation on macOS (#5633)
This commit is contained in:
@ -55,13 +55,7 @@ int serverAccept (int srvsock)
|
||||
perror(MOCK "accept()");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (fcntl(clisock, F_SETFL, O_NONBLOCK) == -1)
|
||||
{
|
||||
fprintf(stderr, MOCK "ClientContext::accept: fcntl(O_NONBLOCK): %s\n", strerror(errno));
|
||||
close(clisock);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return clisock;
|
||||
return mockSockSetup(clisock);
|
||||
}
|
||||
|
||||
void WiFiServer::begin (uint16_t port)
|
||||
|
Reference in New Issue
Block a user