+/* evil bodge to work around broken header file */
+#undef error
+#include <CoreServices/CoreServices.h>
+#include <stdarg.h>
+
+/** @brief Report an error with an OSStatus */
+void coreaudio_fatal(OSStatus err, const char *fmt, ...) {
+ va_list ap;
+ char *msg;
+
+ va_start(ap, fmt);
+ byte_vasprintf(&msg, fmt, ap);
+ va_end(ap);
+
+ disorder_fatal(0, "%s: error %u", msg, (unsigned)err);
+}