summaryrefslogtreecommitdiff
path: root/src/mumblemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-30 19:32:54 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-30 19:57:08 +0300
commit5c260f683e26529d7cf02c12c1fff70a7a7e5eb8 (patch)
tree5b36a813ae964b7b9d5709c6bbce6e1b68d64699 /src/mumblemanager.cpp
parenta7c7cc655f94acc4476e681ac258ff6981702944 (diff)
downloadmanaplus-5c260f683e26529d7cf02c12c1fff70a7a7e5eb8.tar.gz
manaplus-5c260f683e26529d7cf02c12c1fff70a7a7e5eb8.tar.bz2
manaplus-5c260f683e26529d7cf02c12c1fff70a7a7e5eb8.tar.xz
manaplus-5c260f683e26529d7cf02c12c1fff70a7a7e5eb8.zip
Add some fixes for making manaplus on OpenBSD.
Based on patches by Jona (jaj)
Diffstat (limited to 'src/mumblemanager.cpp')
-rw-r--r--src/mumblemanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mumblemanager.cpp b/src/mumblemanager.cpp
index d3eacc64b..456606406 100644
--- a/src/mumblemanager.cpp
+++ b/src/mumblemanager.cpp
@@ -39,7 +39,7 @@ MumbleManager::~MumbleManager()
{
#ifdef WIN32
UnmapViewOfFile(mLinkedMem);
-#elif defined __FreeBSD__ || defined __DragonFly__ || defined __APPLE__
+#elif defined BSD4_4
#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__ || defined __APPLE__
+#if defined BSD4_4
return;
#endif
@@ -100,7 +100,7 @@ void MumbleManager::init()
logger->log1("MumbleManager::init can't map MumbleLink");
return;
}
-#elif defined __FreeBSD__ || defined __DragonFly__ || defined __APPLE__
+#elif defined BSD4_4
#else
char memName[256];
snprintf(memName, 256, "/MumbleLink.%d", getuid());