diff options
author | Markus Koschany <apo@gambaru.de> | 2015-01-20 10:41:51 +0100 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-02-11 15:59:58 +1000 |
commit | cfca5f99e62a32b5488d93f771453ef6935c5d4e (patch) | |
tree | 44f3e00e3f23f48648e066b70a8cdd41cdd8a08f /src/jthread/pthread/jevent.cpp | |
parent | caf8d2a9d16a313bbc86a27ad0642efc76852e9f (diff) | |
download | minetest-cfca5f99e62a32b5488d93f771453ef6935c5d4e.tar.gz minetest-cfca5f99e62a32b5488d93f771453ef6935c5d4e.tar.bz2 minetest-cfca5f99e62a32b5488d93f771453ef6935c5d4e.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.cpp | 2 |
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 |