mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-08 08:46:04 +00:00
Fixed windows build not compiling
This commit is contained in:
committed by
Anonymous275
parent
f13523fbe5
commit
218504e674
@@ -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
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "IThreaded.h"
|
||||
#include "TLuaFile.h"
|
||||
#include "TServer.h"
|
||||
#include <optional>
|
||||
#include <lua.hpp>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "Common.h"
|
||||
#include "TServer.h"
|
||||
|
||||
#include <optional>
|
||||
class TPPSMonitor : public IThreaded {
|
||||
public:
|
||||
explicit TPPSMonitor(TServer& Server);
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "Compat.h"
|
||||
#include "IThreaded.h"
|
||||
#include "TServer.h"
|
||||
#include <optional>
|
||||
|
||||
class TResourceManager;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user