diff --git a/CMakeLists.txt b/CMakeLists.txt index 599c7a79f..f4c914101 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/winpr/libwinpr/synch/wait.c b/winpr/libwinpr/synch/wait.c index 18c1d05ff..5fa5e834c 100644 --- a/winpr/libwinpr/synch/wait.c +++ b/winpr/libwinpr/synch/wait.c @@ -109,7 +109,7 @@ static long long ts_difftime(const struct timespec *o, #if !defined(HAVE_PTHREAD_GNU_EXT) #include -#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