]> git.sesse.net Git - mlt/commitdiff
only build rtaudio for Linux, Windows, or OS X
authorDan Dennedy <dan@dennedy.org>
Thu, 22 Dec 2011 05:58:23 +0000 (21:58 -0800)
committerDan Dennedy <dan@dennedy.org>
Thu, 22 Dec 2011 05:58:23 +0000 (21:58 -0800)
src/modules/rtaudio/RtAudio.cpp
src/modules/rtaudio/configure [new file with mode: 0755]

index f6b4685243372d380fdd2a632078efb23db96cbc..2bdd89b9884bbc22d590d35fea9ab9e3f3eb17f2 100644 (file)
@@ -6373,7 +6373,7 @@ extern "C" void *alsaCallbackHandler( void *ptr )
 #include <sys/ioctl.h>\r
 #include <unistd.h>\r
 #include <fcntl.h>\r
-#include "soundcard.h"\r
+#include <sys/soundcard.h>\r
 #include <errno.h>\r
 #include <math.h>\r
 \r
diff --git a/src/modules/rtaudio/configure b/src/modules/rtaudio/configure
new file mode 100755 (executable)
index 0000000..3543db6
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ "$help" != "1" ]
+then
+
+       if [ "$targetos" != "Darwin" ] && [ "$targetos" != "MinGW" ] && [ "$targetos" != "Linux" ]
+       then
+               echo "- only builds on Linux, OS X, or Windows: disabling"
+               touch ../disable-rtaudio
+               exit 0
+       fi
+fi