summaryrefslogtreecommitdiff
path: root/packages/alsa/files
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2009-01-25 23:13:20 -0800
committerKhem Raj <raj.khem@gmail.com>2009-01-25 23:13:20 -0800
commit01006e071c156fc20cc273a3cf2deb70460c0d53 (patch)
treeecd4d7b149eac17873230b08495fa6445acb4007 /packages/alsa/files
parentec91180cc7efb7fb87a3c0be5de00fa668336813 (diff)
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.
Diffstat (limited to 'packages/alsa/files')
-rw-r--r--packages/alsa/files/alsa-utils-strl-funcs-non-static.patch22
1 files changed, 22 insertions, 0 deletions
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 0000000000..db6bacfca0
--- /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;