diff --git a/libao-nanosleep.patch b/libao-nanosleep.patch new file mode 100644 index 0000000..c8ceb05 --- /dev/null +++ b/libao-nanosleep.patch @@ -0,0 +1,18 @@ +commit 1f998f5d6d77674dad01b181811638578ad68242 +Author: Tristan Matthews +Date: Sun Jan 15 12:15:07 2017 -0500 + + pulse: fix missing include warning for nanosleep + +diff --git a/src/plugins/pulse/ao_pulse.c b/src/plugins/pulse/ao_pulse.c +index 9835273b53c35bf9..2d10d57f17f6bdd6 100644 +--- a/src/plugins/pulse/ao_pulse.c ++++ b/src/plugins/pulse/ao_pulse.c +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + + #include diff --git a/libao.spec b/libao.spec index c6728ad..71cc0a1 100644 --- a/libao.spec +++ b/libao.spec @@ -1,6 +1,6 @@ Name: libao Version: 1.2.0 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Cross Platform Audio Output Library License: GPLv2+ URL: http://xiph.org/ao/ @@ -9,6 +9,7 @@ Patch1: 0001-ao_pulse.c-fix-latency-calculation.patch # https://gitlab.xiph.org/xiph/libao/commit/d5221655dfd1a2156aa6be83b5aadea7c1e0f5bd.diff # CVE 2017-11548 Patch2: d5221655dfd1a2156aa6be83b5aadea7c1e0f5bd.diff +Patch3: libao-nanosleep.patch BuildRequires: gcc BuildRequires: alsa-lib-devel BuildRequires: pkgconfig(libpulse) @@ -31,6 +32,7 @@ developing applications that use %{name}. %setup -q %patch1 -p1 %patch2 -p1 +%patch3 -p1 sed -i "s/-O20 -ffast-math//" configure @@ -67,6 +69,9 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}* %changelog +* Mon Sep 9 2019 Florian Weimer - 1.2.0-16 +- Fix building in C99 mode + * Thu Jul 25 2019 Fedora Release Engineering - 1.2.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild