diff --git a/CMakeLists.txt b/CMakeLists.txt index 385614125..67c7261e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -381,6 +381,7 @@ endif(APPLE) # OpenBSD if(OPENBSD) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -L/usr/local/lib") set(WITH_MANPAGES "ON") set(WITH_ALSA "OFF") set(WITH_PULSE "ON") diff --git a/channels/tsmf/client/oss/tsmf_oss.c b/channels/tsmf/client/oss/tsmf_oss.c index 45725ec96..fe9785128 100644 --- a/channels/tsmf/client/oss/tsmf_oss.c +++ b/channels/tsmf/client/oss/tsmf_oss.c @@ -34,7 +34,11 @@ #include #include #include -#include +#if defined(__OpenBSD__) + #include +#else + #include +#endif #include #include