Fixed Windows builds. Wtf..?

This commit is contained in:
Thulinma 2017-05-16 20:15:00 +02:00
parent 7d6e133858
commit 6e21e70fae
2 changed files with 2 additions and 1 deletions

View file

@ -46,7 +46,7 @@ unsigned int Controller::maxConnsPerIP = 0;
/// Session cache shared memory page
IPC::sharedPage shmSessions(SHM_SESSIONS, SHM_SESSIONS_SIZE, true);
/// Lock for the session cache shared memory page
IPC::semaphore cacheLock(SEM_SESSCACHE, O_CREAT | O_RDWR, ACCESSPERMS, 1);
IPC::semaphore Controller::cacheLock(SEM_SESSCACHE, O_CREAT | O_RDWR, ACCESSPERMS, 1);
//For server-wide totals. Local to this file only.
struct streamTotals {

View file

@ -17,6 +17,7 @@ namespace Controller {
extern bool killOnExit;
extern unsigned int maxConnsPerIP;
extern Controller::semaphore cacheLock;
//These keep track of which streams are currently active.
extern std::map<std::string, unsigned int> activeStreams;