Fixes for OpenBSD port
authorBryan Everly <bryan@bceassociates.com>
Fri, 11 Sep 2015 01:31:13 +0000 (21:31 -0400)
committerBryan Everly <bryan@bceassociates.com>
Fri, 11 Sep 2015 01:31:13 +0000 (21:31 -0400)
CMakeLists.txt
channels/tsmf/client/oss/tsmf_oss.c

index 3856141..67c7261 100644 (file)
@@ -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")
index 45725ec..fe97851 100644 (file)
 #include <libgen.h>
 #include <limits.h>
 #include <unistd.h>
-#include <sys/soundcard.h>
+#if defined(__OpenBSD__)
+    #include <soundcard.h>
+#else
+    #include <sys/soundcard.h>
+#endif
 #include <sys/ioctl.h>
 
 #include <freerdp/types.h>