aboutsummaryrefslogtreecommitdiff
path: root/src/jthread/pthread/jevent.cpp
diff options
context:
space:
mode:
authorMarkus Koschany <apo@gambaru.de>2015-01-20 10:41:51 +0100
committerCraig Robbins <kde.psych@gmail.com>2015-02-14 20:59:35 +1000
commit93e5ab367abe9f68cf1fe3ed8a198f563d9452af (patch)
treef617bb7a04a694905ac63683058c9fe4d494d59b /src/jthread/pthread/jevent.cpp
parent60fa5807b90498bf052bce1a7552f2ec794eb0d4 (diff)
downloadminetest-93e5ab367abe9f68cf1fe3ed8a198f563d9452af.tar.gz
minetest-93e5ab367abe9f68cf1fe3ed8a198f563d9452af.tar.bz2
minetest-93e5ab367abe9f68cf1fe3ed8a198f563d9452af.zip
Fix FTBFS on GNU/Hurd platform
Minetest fails to build on GNU/Hurd due to a name clash with OSX/Apple, both are defining the __MACH__ keyword. This commit fixes the issue.
Diffstat (limited to 'src/jthread/pthread/jevent.cpp')
-rw-r--r--src/jthread/pthread/jevent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jthread/pthread/jevent.cpp b/src/jthread/pthread/jevent.cpp
index 6a45a37d2..e1d40f4c1 100644
--- a/src/jthread/pthread/jevent.cpp
+++ b/src/jthread/pthread/jevent.cpp
@@ -29,7 +29,7 @@
#define UNUSED(expr) do { (void)(expr); } while (0)
-#ifdef __MACH__
+#if defined(__MACH__) && defined(__APPLE__)
#undef sem_t
#define sem_t semaphore_t
#undef sem_init