Skip to content

Commit

Permalink
Revert SO_ERROR guard for 3DS
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey jodon committed Dec 21, 2023
1 parent 1d1346a commit 9c10938
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,7 @@ enet_socket_get_option (ENetSocket socket, ENetSocketOption option, int * value)
{
case ENET_SOCKOPT_ERROR:
len = sizeof (int);
#ifndef __3DS__ //SO_ERROR is unreliable on 3DS
result = getsockopt (socket, SOL_SOCKET, SO_ERROR, value, & len);
#else
result = 0;
#endif
break;

case ENET_SOCKOPT_TTL:
Expand Down

0 comments on commit 9c10938

Please sign in to comment.