summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/output/plugins/SndioOutputPlugin.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output/plugins/SndioOutputPlugin.cxx b/src/output/plugins/SndioOutputPlugin.cxx
index c5f63dfd7..b0050d6ae 100644
--- a/src/output/plugins/SndioOutputPlugin.cxx
+++ b/src/output/plugins/SndioOutputPlugin.cxx
@@ -24,8 +24,16 @@
#include "util/Domain.hxx"
#include "Log.hxx"
+/* work around a C++ incompatibility if the sndio API is emulated by
+ libroar: libroar's "struct roar_service_stream" has a member named
+ "new", which is an illegal identifier in C++ */
+#define new new_
+
#include <sndio.h>
+/* undo the libroar workaround */
+#undef new
+
#include <stdexcept>
#ifndef SIO_DEVANY