From a07c4ca8162affc61a5b0e5db8485f0753cd465b Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Thu, 20 Sep 2018 13:55:25 +0200 Subject: removed the dependency to alsalib-1.1.6 for host This fixes the compilation for hosts (Ubuntu, fedora, opensuse), that do not have alsalib-1.1.6 Notice that this fix needed another one in app-template, since the OS detection was broken. These are the changes brought by the bump of app-templates: (3dc85ec - Thierry Bultel) common.cmake: fixed erroneous search path for os-release (7fa5e5a - Romain Forlot) Fix: missing gcov symbol in compiled binaries (76e12e7 - CorentinLGS) app-templates doc: Changed doc to fit new format. (02f45f1 - Romain Forlot) Update Docs (52ae181 - Romain Forlot) Fix: typo (f0b24b0 - Romain Forlot) Rollback about TEST build type (e841a77 - Romain Forlot) Adding a TEST build type (994ebc1 - Romain Forlot) Change default compilation options. (85d5ffd - Romain Forlot) Test widget only if there are test materials (d14bdce - Romain Forlot) Handles more test LABELS. (70cf8fd - Romain Forlot) Missing flag for COVERAGE build type (3c99b8a - Romain Forlot) Create a test widget Change-Id: I788d8d0bf110dd9cdc11aac256bd535db0d90e4d Signed-off-by: Thierry Bultel --- plugins/alsa/alsa-bluez.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/alsa/alsa-bluez.c b/plugins/alsa/alsa-bluez.c index bd6bc99..53612df 100644 --- a/plugins/alsa/alsa-bluez.c +++ b/plugins/alsa/alsa-bluez.c @@ -37,8 +37,12 @@ void alsa_bluez_init() { if (initialized) goto failed; +#if SND_LIB_VERSION >= (1<<16|1<<8|6) char errbuf[256]; void * dl = snd_dlopen(ALSA_BLUEZ_PROXY_LIB, RTLD_NOW, errbuf, 256); +#else + void * dl = snd_dlopen(ALSA_BLUEZ_PROXY_LIB, RTLD_NOW); +#endif if (!dl) { printf("Failed to open bluealsa proxy plugin\n"); goto failed; -- cgit 1.2.3-korg