From a64af8d8cf1e760759fba6026b10c6d4a5f2f3d7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 9 Jan 2021 20:08:22 -0600 Subject: [PATCH] Fix unused variable warning on NaCl --- src/PlatformSockets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PlatformSockets.c b/src/PlatformSockets.c index f0ebef0..a19daf9 100644 --- a/src/PlatformSockets.c +++ b/src/PlatformSockets.c @@ -268,10 +268,11 @@ SOCKET bindUdpSocket(int addrfamily, int bufferSize) { } int setSocketNonBlocking(SOCKET s, bool enabled) { - int val = enabled ? 1 : 0; #if defined(__vita__) + int val = enabled ? 1 : 0; return setsockopt(s, SOL_SOCKET, SO_NONBLOCK, (char*)&val, sizeof(val)); #elif defined(FIONBIO) + int val = enabled ? 1 : 0; return ioctlsocket(s, FIONBIO, &val); #else return SOCKET_ERROR;