mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Merge pull request #666 from ysdragon/fix-openbsd-compilation
Fix compilation under OpenBSD
This commit is contained in:
commit
03eaa62902
2 changed files with 9 additions and 6 deletions
|
@ -89,7 +89,11 @@ extern "C" {
|
|||
} GSICriticalSection;
|
||||
typedef void (*GSThreadFunc)(void *arg);
|
||||
|
||||
#elif defined(_UNIX) //_LINUX || _MACOSX
|
||||
#elif defined(_UNIX) // Linux, Mac OS X, openbsd, etc.
|
||||
#if defined(__OpenBSD__)
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
typedef pthread_mutex_t GSICriticalSection;
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -59,14 +59,13 @@ elseif(UNIX)
|
|||
target_link_libraries(syslib INTERFACE execinfo m)
|
||||
else()
|
||||
target_link_libraries(syslib INTERFACE m)
|
||||
if (NOT APPLE)
|
||||
# For when using GLIBC versions older than 2.34
|
||||
target_link_libraries(syslib INTERFACE rt)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
target_link_libraries(syslib INTERFACE stdc++)
|
||||
|
||||
if (NOT APPLE)
|
||||
# For when using GLIBC versions older than 2.34
|
||||
target_link_libraries(syslib INTERFACE rt)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue