alsa-utils/alsa-utils-1.0.18-glibc_use_bsd.patch

18 lines
511 B
Diff
Raw Permalink Normal View History

diff -Nru alsa-utils-1.0.18.orig/alsactl/init_sysdeps.c alsa-utils-1.0.18/alsactl/init_sysdeps.c
--- alsa-utils-1.0.18.orig/alsactl/init_sysdeps.c 2008-11-13 12:24:15.000000000 +0100
+++ alsa-utils-1.0.18/alsactl/init_sysdeps.c 2008-11-13 12:23:25.000000000 +0100
@@ -18,6 +18,7 @@
*/
#ifdef __GLIBC__
+#ifndef __USE_BSD
static size_t strlcpy(char *dst, const char *src, size_t size)
{
size_t bytes = 0;
@@ -60,4 +61,5 @@
*q = '\0';
return bytes;
}
+#endif /* __USE_BSD */
#endif /* __GLIBC__ */