mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 07:13:13 +01:00
fixed support for Haiku; thanks to MrSunshine
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#if linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4
|
||||
#if linux || __APPLE__ || __FreeBSD__ || __HAIKU__ || __sun&&__SVR4
|
||||
#include <pthread.h> // Needs pthread_mutex_t for os_critsecsize
|
||||
#elif _WIN32
|
||||
#include <windows.h>
|
||||
@@ -45,7 +45,7 @@ int os_critsecsize()
|
||||
}
|
||||
#endif
|
||||
|
||||
#if linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4
|
||||
#if linux || __APPLE__ || __FreeBSD__ || __HAIKU__ || __sun&&__SVR4
|
||||
int os_critsecsize()
|
||||
{
|
||||
return sizeof(pthread_mutex_t);
|
||||
|
||||
Reference in New Issue
Block a user