Modified code to use bulitin pthread functions on OpenBSD
This commit is contained in:
parent
a2a1d06d9b
commit
d31301f73f
@ -376,6 +376,7 @@ if(OPENBSD)
|
||||
set(WITH_ALSA "OFF")
|
||||
set(WITH_PULSE "ON")
|
||||
set(WITH_WAYLAND "OFF")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_PTHREAD_GNU_EXT")
|
||||
endif()
|
||||
|
||||
# Android
|
||||
|
@ -109,7 +109,7 @@ static long long ts_difftime(const struct timespec *o,
|
||||
#if !defined(HAVE_PTHREAD_GNU_EXT)
|
||||
#include <pthread.h>
|
||||
|
||||
#if defined(__FreeBSD__) || defined(sun) || defined(__OpenBSD__)
|
||||
#if defined(__FreeBSD__) || defined(sun)
|
||||
/*the only way to get it work is to remove the static*/
|
||||
int pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *timeout)
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user