mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-22 08:08:43 +00:00
Fixed windows build not compiling
This commit is contained in:
1 parent
f13523fbe5
commit
218504e674
9 files changed
+32
-9
No files matched your search
+3
-3
@@ -22,10 +22,10 @@ inline void CloseSocketProper(int socket) {
|
||||
|
||||
#ifdef WIN32
|
||||
#include <conio.h>
|
||||
#include <windows.h>
|
||||
#include <winsock2.h>
|
||||
inline void CloseSocketProper(int socket) {
|
||||
shutdown(socket, SHUT_RDWR);
|
||||
close(socket);
|
||||
shutdown(socket, SD_BOTH);
|
||||
closesocket(socket);
|
||||
}
|
||||
#endif // WIN32
|
||||
|
||||
|
||||
Reference in new issue
Block a user