Modified code to use bulitin pthread functions on OpenBSD

This commit is contained in:
Bryan Everly 2015-04-21 16:14:56 -04:00
parent a2a1d06d9b
commit d31301f73f
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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