mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
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.
This commit is contained in:
parent
caf8d2a9d1
commit
cfca5f99e6
6 changed files with 20 additions and 20 deletions
|
@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <windows.h>
|
||||
#include <assert.h>
|
||||
#define MAX_SEMAPHORE_COUNT 1024
|
||||
#elif __MACH__
|
||||
#elif defined(__MACH__) && defined(__APPLE__)
|
||||
#include <pthread.h>
|
||||
#include <mach/mach.h>
|
||||
#include <mach/task.h>
|
||||
|
@ -52,7 +52,7 @@ public:
|
|||
private:
|
||||
#if defined(WIN32)
|
||||
HANDLE m_hSemaphore;
|
||||
#elif __MACH__
|
||||
#elif defined(__MACH__) && defined(__APPLE__)
|
||||
semaphore_t m_semaphore;
|
||||
int semcount;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue