mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-23 11:50:04 +00:00
Do not try to compile the monitor on windows
This commit is contained in:
parent
c8b011913a
commit
e899928928
@ -6,6 +6,8 @@
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
static int listener;
|
||||
static std::mutex sockLock; // guards socket list
|
||||
static std::list<int> sockets;
|
||||
@ -110,3 +112,5 @@ void Monitor::start(void *unused) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // _WIN32
|
||||
|
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
#include "CNProtocol.hpp"
|
||||
|
||||
#include <list>
|
||||
@ -10,3 +12,5 @@ namespace Monitor {
|
||||
void tick(CNServer *, time_t);
|
||||
void start(void *);
|
||||
};
|
||||
|
||||
#endif // _WIN32
|
||||
|
@ -104,7 +104,9 @@ int main() {
|
||||
TransportManager::init();
|
||||
BuddyManager::init();
|
||||
GroupManager::init();
|
||||
#ifndef _WIN32
|
||||
Monitor::init();
|
||||
#endif
|
||||
Database::open();
|
||||
|
||||
switch (settings::EVENTMODE) {
|
||||
@ -123,7 +125,9 @@ int main() {
|
||||
shardServer = new CNShardServer(settings::SHARDPORT);
|
||||
|
||||
shardThread = new std::thread(startShard, (CNShardServer*)shardServer);
|
||||
#ifndef _WIN32
|
||||
monitorThread = new std::thread(Monitor::start, nullptr);
|
||||
#endif
|
||||
|
||||
loginServer.start();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user