[oe-commits] Khem Raj : alsa-utils: Do not make strl* functions as static.

GIT User account git at amethyst.openembedded.net
Fri Feb 13 06:53:51 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 01006e071c156fc20cc273a3cf2deb70460c0d53
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=01006e071c156fc20cc273a3cf2deb70460c0d53

Author: Khem Raj <raj.khem at gmail.com>
Date:   Sun Jan 25 23:13:20 2009 -0800

alsa-utils: Do not make strl* functions as static.

	* These funtions are provided by C libraries like uclibc
	Declaring them static here causes static not static declaration
	issues reported by gcc.

---

 packages/alsa/alsa-utils_1.0.18.bb                 |    2 +
 .../files/alsa-utils-strl-funcs-non-static.patch   |   22 ++++++++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/packages/alsa/alsa-utils_1.0.18.bb b/packages/alsa/alsa-utils_1.0.18.bb
index 8f43982..4de9180 100644
--- a/packages/alsa/alsa-utils_1.0.18.bb
+++ b/packages/alsa/alsa-utils_1.0.18.bb
@@ -3,10 +3,12 @@ HOMEPAGE = "http://www.alsa-project.org"
 SECTION = "console/utils"
 LICENSE = "GPL"
 DEPENDS = "alsa-lib ncurses"
+PR = "r1"
 
 SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
            file://alsa-utils-automake.patch;patch=1 \
 	   file://alsa-utils-remove-xmlto.patch;patch=1 \
+	   file://alsa-utils-strl-funcs-non-static.patch;patch=1 \
 	  "
 
 inherit autotools
diff --git a/packages/alsa/files/alsa-utils-strl-funcs-non-static.patch b/packages/alsa/files/alsa-utils-strl-funcs-non-static.patch
new file mode 100644
index 0000000..db6bacf
--- /dev/null
+++ b/packages/alsa/files/alsa-utils-strl-funcs-non-static.patch
@@ -0,0 +1,22 @@
+Index: alsa-utils-1.0.18/alsactl/init_sysdeps.c
+===================================================================
+--- alsa-utils-1.0.18.orig/alsactl/init_sysdeps.c	2009-01-25 21:12:40.000000000 -0800
++++ alsa-utils-1.0.18/alsactl/init_sysdeps.c	2009-01-25 21:12:56.000000000 -0800
+@@ -18,7 +18,7 @@
+  */
+ 
+ #ifdef __GLIBC__
+-static size_t strlcpy(char *dst, const char *src, size_t size)
++size_t strlcpy(char *dst, const char *src, size_t size)
+ {
+ 	size_t bytes = 0;
+ 	char *q = dst;
+@@ -37,7 +37,7 @@
+ 	return bytes;
+ }
+ 
+-static size_t strlcat(char *dst, const char *src, size_t size)
++size_t strlcat(char *dst, const char *src, size_t size)
+ {
+ 	size_t bytes = 0;
+ 	char *q = dst;





More information about the Openembedded-commits mailing list