[oe-commits] org.oe.dev alsa-lib: fix "error: field 'tstamp' has incomplete type" when including alsa headers with strict compilation options

mickeyl commit openembedded-commits at lists.openembedded.org
Thu Jan 18 00:32:57 UTC 2007


alsa-lib: fix "error: field 'tstamp' has incomplete type" when including alsa headers with strict compilation options

Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 101fe5719b8175ae1fd5c8bb133f3310512691c8
ViewMTN: http://monotone.openembedded.org/revision.psp?id=101fe5719b8175ae1fd5c8bb133f3310512691c8
Files:
1
packages/alsa/alsa-lib
packages/alsa/alsa-lib/fix-tstamp-declaration.patch
packages/alsa/alsa-lib_1.0.13.bb
Diffs:

#
# mt diff -rb59d1fd53b10dd9ce0f259f30063b9024494e1ed -r101fe5719b8175ae1fd5c8bb133f3310512691c8
#
# 
# 
# add_dir "packages/alsa/alsa-lib"
# 
# add_file "packages/alsa/alsa-lib/fix-tstamp-declaration.patch"
#  content [5c66a333163c01c51a7d89c5d937b8700292e9c9]
# 
# patch "packages/alsa/alsa-lib_1.0.13.bb"
#  from [86cf99c8edffc1c0791254a52d612dbf4e916c12]
#    to [d3a8cd243d086a04f3d5b068b6675f6b856c92df]
# 
============================================================
--- packages/alsa/alsa-lib/fix-tstamp-declaration.patch	5c66a333163c01c51a7d89c5d937b8700292e9c9
+++ packages/alsa/alsa-lib/fix-tstamp-declaration.patch	5c66a333163c01c51a7d89c5d937b8700292e9c9
@@ -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 <time.h>
+ 
+ #ifdef __cplusplus
============================================================
--- packages/alsa/alsa-lib_1.0.13.bb	86cf99c8edffc1c0791254a52d612dbf4e916c12
+++ packages/alsa/alsa-lib_1.0.13.bb	d3a8cd243d086a04f3d5b068b6675f6b856c92df
@@ -1,8 +1,8 @@ LICENSE = "GPL"
 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 @@ ARM_INSTRUCTION_SET = "arm"
 #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
 






More information about the Openembedded-commits mailing list