From f61f3efe2389249c001107ccd55dac39e79ef2a1 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Thu, 18 Jan 2007 00:27:21 +0000 Subject: alsa-lib: fix "error: field 'tstamp' has incomplete type" when including alsa headers with strict compilation options --- packages/alsa/alsa-lib/.mtn2git_empty | 0 packages/alsa/alsa-lib/fix-tstamp-declaration.patch | 13 +++++++++++++ packages/alsa/alsa-lib_1.0.13.bb | 5 +++-- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 packages/alsa/alsa-lib/.mtn2git_empty create mode 100644 packages/alsa/alsa-lib/fix-tstamp-declaration.patch diff --git a/packages/alsa/alsa-lib/.mtn2git_empty b/packages/alsa/alsa-lib/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/alsa/alsa-lib/fix-tstamp-declaration.patch b/packages/alsa/alsa-lib/fix-tstamp-declaration.patch new file mode 100644 index 0000000000..59b3b6d150 --- /dev/null +++ b/packages/alsa/alsa-lib/fix-tstamp-declaration.patch @@ -0,0 +1,13 @@ +Index: alsa-lib-1.0.13/include/global.h +=================================================================== +--- alsa-lib-1.0.13.orig/include/global.h ++++ alsa-lib-1.0.13/include/global.h +@@ -29,6 +29,8 @@ + #define __ALSA_GLOBAL_H_ + + /* for timeval and timespec */ ++#define __need_timeval ++#define __need_timespec + #include + + #ifdef __cplusplus diff --git a/packages/alsa/alsa-lib_1.0.13.bb b/packages/alsa/alsa-lib_1.0.13.bb index 987a5901f4..8b6b7af409 100644 --- a/packages/alsa/alsa-lib_1.0.13.bb +++ b/packages/alsa/alsa-lib_1.0.13.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Alsa sound library" HOMEPAGE = "http://www.alsa-project.org" SECTION = "libs/multimedia" LICENSE = "GPL" -PR = "r0" +PR = "r1" # configure.in sets -D__arm__ on the command line for any arm system # (not just those with the ARM instruction set), this should be removed, @@ -10,7 +10,8 @@ PR = "r0" #FIXME: remove the following ARM_INSTRUCTION_SET = "arm" -SRC_URI = "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-${PV}.tar.bz2" +SRC_URI = "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-${PV}.tar.bz2 \ + file://fix-tstamp-declaration.patch;patch=1" inherit autotools pkgconfig -- cgit v1.2.3