diff --git a/similar/main/net_udp.cpp b/similar/main/net_udp.cpp index 7a50abd20..f6e1f43f6 100644 --- a/similar/main/net_udp.cpp +++ b/similar/main/net_udp.cpp @@ -155,9 +155,9 @@ struct RAIIsocket { #ifndef _WIN32 typedef int SOCKET; - int closesocket(SOCKET s) + int closesocket(SOCKET fd) { - return close(s); + return close(fd); } #endif SOCKET s;