buildroot/package/squeezelite
Thomas Petazzoni 292d0266a9 squeezelite: fix musl build
The build error was not yet found by the autobuilders:

output_alsa.c: In function ‘output_init_alsa’:
output_alsa.c:865:10: error: ‘M_TRIM_THRESHOLD’ undeclared (first use in this function)
  mallopt(M_TRIM_THRESHOLD, -1);
          ^
output_alsa.c:865:10: note: each undeclared identifier is reported only once for each function it appears in
output_alsa.c:866:10: error: ‘M_MMAP_MAX’ undeclared (first use in this function)
  mallopt(M_MMAP_MAX, 0);
          ^

This commit adds a patch fixing this build error by making the
mallopt() usage conditional on __GLIBC__.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[Thomas: only enclose the mallopt() call in __GLIBC__, use Git to
format the patch, improve the commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-02-07 18:17:50 +01:00
..
0001-Makefile-allow-passing-CFLAGS-and-LDFLAGS.patch
0002-output_alsa-use-mallopt-only-on-glibc.patch squeezelite: fix musl build 2016-02-07 18:17:50 +01:00
Config.in
squeezelite.hash
squeezelite.mk