(Network) Don't call getsockopt on 3DS platform (#14389)

This commit is contained in:
MrHuu 2022-09-06 01:51:15 +02:00 committed by GitHub
parent 1c31efaa91
commit b88c297f8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -728,7 +728,10 @@ bool socket_connect_with_timeout(int fd, void *data, int timeout)
return false;
}
#if !defined(GEKKO) && defined(SO_ERROR)
/* Excluded platforms do not have getsockopt implemented [GEKKO],
* or it's returned values are unreliable [3DS].
*/
#if !defined(GEKKO) && !defined(_3DS) && defined(SO_ERROR)
{
int error = -1;
socklen_t errsz = sizeof(error);