aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-19 07:39:27 +0200
committerMax Kellermann <max@duempel.org>2011-09-19 09:39:35 +0200
commit1d8840412fc1dd76a73ee13413cd7fc9a6ff229a (patch)
treec135c1fd1cbe931b99bf5e37db0860306e2ac187 /src
parentdf1152ee0f3b3761e9956c0084094400d1250705 (diff)
downloadmpd-1d8840412fc1dd76a73ee13413cd7fc9a6ff229a.tar.gz
mpd-1d8840412fc1dd76a73ee13413cd7fc9a6ff229a.tar.xz
mpd-1d8840412fc1dd76a73ee13413cd7fc9a6ff229a.zip
configure.ac: add option --enable-solaris-output
Allow enabling the plugin explicitly without running Solaris, to test the build.
Diffstat (limited to '')
-rw-r--r--src/output/solaris_output_plugin.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/output/solaris_output_plugin.c b/src/output/solaris_output_plugin.c
index 22c583805..6f6f507b3 100644
--- a/src/output/solaris_output_plugin.c
+++ b/src/output/solaris_output_plugin.c
@@ -23,7 +23,6 @@
#include <glib.h>
-#include <sys/audio.h>
#include <sys/stropts.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -31,6 +30,25 @@
#include <fcntl.h>
#include <errno.h>
+#ifdef __sun
+#include <sys/audio.h>
+#else
+
+/* some fake declarations that allow build this plugin on systems
+ other than Solaris, just to see if it compiles */
+
+#define AUDIO_GETINFO 0
+#define AUDIO_SETINFO 0
+#define AUDIO_ENCODING_LINEAR 0
+
+struct audio_info {
+ struct {
+ unsigned sample_rate, channels, precision, encoding;
+ } play;
+};
+
+#endif
+
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "solaris_output"