mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-12 23:25:42 +01:00
alsa-utils check if __USE_BSD is defined before compiling "BSD functions"
Another bug/issue I tripped over when compiling alsa-utils in an environment using uClibc to supply the C library functions. Here I have enabled some old BSD style functions. The attached patch will honor them if they are enabled. Without this patch I get a redefined error during compile. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
045ccf2081
commit
e3dfc7470e
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __GLIBC__
|
#if defined(__GLIBC__) && !(defined(__UCLIBC__) && defined(__USE_BSD))
|
||||||
static size_t strlcpy(char *dst, const char *src, size_t size)
|
static size_t strlcpy(char *dst, const char *src, size_t size)
|
||||||
{
|
{
|
||||||
size_t bytes = 0;
|
size_t bytes = 0;
|
||||||
|
|
Loading…
Reference in a new issue