new file mode 100644
@@ -0,0 +1,24 @@
+From 1f998f5d6d77674dad01b181811638578ad68242 Mon Sep 17 00:00:00 2001
+From: Tristan Matthews <tmatth@videolan.org>
+Date: Sun, 15 Jan 2017 12:15:07 -0500
+Subject: [PATCH] pulse: fix missing include warning for nanosleep
+
+Upstream-Status: Backport [https://gitlab.xiph.org/xiph/libao/-/commit/1f998f5d6d77674dad01b181811638578ad68242]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ src/plugins/pulse/ao_pulse.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/plugins/pulse/ao_pulse.c b/src/plugins/pulse/ao_pulse.c
+index 9835273..2d10d57 100644
+--- a/src/plugins/pulse/ao_pulse.c
++++ b/src/plugins/pulse/ao_pulse.c
+@@ -30,6 +30,7 @@
+ #include <assert.h>
+ #include <string.h>
+ #include <signal.h>
++#include <time.h>
+ #include <limits.h>
+
+ #include <pulse/pulseaudio.h>
+
@@ -7,11 +7,13 @@ HOMEPAGE = "https://www.xiph.org/ao/"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
-SRC_URI = "http://downloads.xiph.org/releases/ao/${BP}.tar.gz"
+SRC_URI = "http://downloads.xiph.org/releases/ao/${BP}.tar.gz \
+ file://0001-pulse-fix-missing-include-warning-for-nanosleep.patch \
+ "
SRC_URI[md5sum] = "9f5dd20d7e95fd0dd72df5353829f097"
SRC_URI[sha256sum] = "03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf"
-inherit autotools
+inherit autotools pkgconfig
PACKAGES += "${BPN}-ckport"
PACKAGES_DYNAMIC += "^${BPN}-plugin-.*"
configure finds the PulseAudio plugin's libpulse-simple with PKG_CHECK_MODULES, but the recipe did not provide pkg-config, so the check always failed ("checking for pkg-config... no") and the plugin was silently left out even with the pulseaudio PACKAGECONFIG enabled. Inherit pkgconfig. With the plugin built, ao_pulse.c fails with clang because nanosleep() is undeclared. Backport the upstream fix that includes <time.h>. Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...issing-include-warning-for-nanosleep.patch | 24 +++++++++++++++++++ .../recipes-multimedia/libao/libao_1.2.0.bb | 6 +++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 meta-multimedia/recipes-multimedia/libao/libao/0001-pulse-fix-missing-include-warning-for-nanosleep.patch