From cb533b2a0456b93cefc50b2abfa89ca805cdc7e1 Mon Sep 17 00:00:00 2001 From: Bryan Everly Date: Thu, 10 Sep 2015 21:31:13 -0400 Subject: [PATCH] Fixes for OpenBSD port --- CMakeLists.txt | 1 + channels/tsmf/client/oss/tsmf_oss.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3856141..67c7261 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 45725ec..fe97851 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 -- 2.7.4