From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: fix for strl functions in alsautils
Date: Sun, 25 Jan 2009 23:49:53 -0800 [thread overview]
Message-ID: <20090126074953.GA26318@gmail.com> (raw)
* 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(-)
create mode 100644
packages/alsa/files/alsa-utils-strl-funcs-non-static.patch
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;
--
1.6.0.4
next reply other threads:[~2009-01-26 7:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-26 7:49 Khem Raj [this message]
2009-01-26 8:24 ` fix for strl functions in alsautils Phil Blundell
2009-02-11 7:29 ` Khem Raj
2009-02-11 19:36 ` Khem Raj
2009-02-12 0:40 ` Khem Raj
2009-02-12 5:28 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090126074953.GA26318@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox