summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-08 20:48:55 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-08 20:48:55 +0300
commitb43af191ae04ba9bd2d46608cddb4ad6fec9269b (patch)
treec2fd295eba21de0731c4271f155b42a828408d1c
parent59ce7917ffb4e6b89593a54fed590d439585ae5f (diff)
downloadmanaverse-b43af191ae04ba9bd2d46608cddb4ad6fec9269b.tar.gz
manaverse-b43af191ae04ba9bd2d46608cddb4ad6fec9269b.tar.bz2
manaverse-b43af191ae04ba9bd2d46608cddb4ad6fec9269b.tar.xz
manaverse-b43af191ae04ba9bd2d46608cddb4ad6fec9269b.zip
Disable mumber manager in Apple platforms.
-rw-r--r--src/mumblemanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mumblemanager.cpp b/src/mumblemanager.cpp
index 921d53e4f..d3eacc64b 100644
--- a/src/mumblemanager.cpp
+++ b/src/mumblemanager.cpp
@@ -39,7 +39,7 @@ MumbleManager::~MumbleManager()
{
#ifdef WIN32
UnmapViewOfFile(mLinkedMem);
-#elif defined __FreeBSD__ || defined __DragonFly__
+#elif defined __FreeBSD__ || defined __DragonFly__ || defined __APPLE__
#else
munmap(mLinkedMem, sizeof(struct LinkedMem));
#endif
@@ -73,7 +73,7 @@ void MumbleManager::setMapBase(uint16_t mapid)
void MumbleManager::init()
{
-#if defined __FreeBSD__ || defined __DragonFly__
+#if defined __FreeBSD__ || defined __DragonFly__ || defined __APPLE__
return;
#endif
@@ -100,7 +100,7 @@ void MumbleManager::init()
logger->log1("MumbleManager::init can't map MumbleLink");
return;
}
-#elif defined __FreeBSD__ || defined __DragonFly__
+#elif defined __FreeBSD__ || defined __DragonFly__ || defined __APPLE__
#else
char memName[256];
snprintf(memName, 256, "/MumbleLink.%d", getuid());