]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsa-utils check if __USE_BSD is defined before compiling "BSD functions"
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Mon, 8 Dec 2008 10:55:27 +0000 (11:55 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Dec 2008 10:55:27 +0000 (11:55 +0100)
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>
alsactl/init_sysdeps.c

index f26313810f02d2a78d56eb6c79ba89c0f0bed692..3aca1b4aeef26f5e7648b152dd895fdaec202a7e 100644 (file)
@@ -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)
 {
        size_t bytes = 0;