From bf4954c86508ca34581545fdc552d3a007d97681 Mon Sep 17 00:00:00 2001 From: Adrian Knoth Date: Tue, 20 Mar 2012 10:12:59 +0100 Subject: [PATCH] firewire: compile with FFADO versions < 9 again ffado_streaming_set_period_size() is exposed starting r2078 of FFADO. To avoid a build dependency on ffado-svn in jack, we copy the prototype declaration. Since the symbol is defined as weak, no problems arise at runtime. --- linux/firewire/JackFFADODriver.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linux/firewire/JackFFADODriver.cpp b/linux/firewire/JackFFADODriver.cpp index fda4fc38..91d999b5 100644 --- a/linux/firewire/JackFFADODriver.cpp +++ b/linux/firewire/JackFFADODriver.cpp @@ -46,6 +46,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #include "JackCompilerDeps.h" #include "JackLockedEngine.h" +// FFADO_API_VERSION was first defined with API_VERSION 9, so all previous +// headers do not provide this define. +#ifndef FFADO_API_VERSION +extern "C" int ffado_streaming_set_period_size(ffado_device_t *dev, + unsigned int period) __attribute__((__weak__)); +#endif + namespace Jack { -- 2.11.4.GIT