Fix building in C99 mode
This commit is contained in:
parent
36b4a4997b
commit
e936c86326
18
libao-nanosleep.patch
Normal file
18
libao-nanosleep.patch
Normal file
@ -0,0 +1,18 @@
|
||||
commit 1f998f5d6d77674dad01b181811638578ad68242
|
||||
Author: Tristan Matthews <tmatth@videolan.org>
|
||||
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 <assert.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
+#include <time.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <pulse/pulseaudio.h>
|
||||
@ -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 <fweimer@redhat.com> - 1.2.0-16
|
||||
- Fix building in C99 mode
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user