diff --git a/alsa-lib-sys-types.patch b/alsa-lib-sys-types.patch new file mode 100644 index 0000000..0ca935d --- /dev/null +++ b/alsa-lib-sys-types.patch @@ -0,0 +1,35 @@ +From 3e7dc283ed2d3ed2341f0657811c588f4dbcba6d Mon Sep 17 00:00:00 2001 +From: David Henningsson +Date: Tue, 12 Feb 2013 10:06:11 +0100 +Subject: [PATCH] Add sys/types.h to include list + +This is needed by snd_pcm_format_silence* functions which +return u_int*_t. It was discovered while trying to compile ALSA +programs with eglibc 2.17. + +Credits to Richard Shaw, Gary Buhrmaster, Matthieu Baerts and + Adam Conrad for this fix. + +BugLink: https://bugs.launchpad.net/bugs/1109298 +BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=885306 +Signed-off-by: David Henningsson +Signed-off-by: Takashi Iwai +--- + include/asoundlib-head.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/asoundlib-head.h b/include/asoundlib-head.h +index 20c8a68..6edbab0 100644 +--- a/include/asoundlib-head.h ++++ b/include/asoundlib-head.h +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +1.7.11.4 + diff --git a/alsa-lib.spec b/alsa-lib.spec index ff7231f..d1627f7 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -5,7 +5,7 @@ Summary: The Advanced Linux Sound Architecture (ALSA) library Name: alsa-lib Version: 1.0.26 -Release: 3%{?prever_dot}%{?dist} +Release: 4%{?prever_dot}%{?dist} License: LGPLv2+ Group: System Environment/Libraries URL: http://www.alsa-project.org/ @@ -17,6 +17,7 @@ Source12: modprobe-dist-oss.conf Patch0: alsa-lib-1.0.24-config.patch Patch2: alsa-lib-1.0.14-glibc-open.patch Patch4: alsa-lib-1.0.16-no-dox-date.patch +Patch5: alsa-lib-sys-types.patch BuildRequires: doxygen Requires(post): /sbin/ldconfig, coreutils @@ -47,6 +48,7 @@ against the ALSA libraries and interfaces. %patch0 -p1 -b .config %patch2 -p1 -b .glibc-open %patch4 -p1 -b .no-dox-date +%patch5 -p1 -b .sys-types %build %configure --disable-aload --with-plugindir=%{_libdir}/alsa-lib --disable-alisp @@ -107,6 +109,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %{_datadir}/aclocal/alsa.m4 %changelog +* Wed Apr 03 2013 Stephen Gallagher - 1.0.26-4 +- Add upstream patch to explicitly include sys/types.h + * Wed Feb 13 2013 Fedora Release Engineering - 1.0.26-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild