1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-14 19:33:59 +02:00
openwrt-packages/sound/squeezelite/patches/030-fix_musl_compatibilty.patch
Ted Hess b4fb194299 squeezelite: Move to new source repo, upgrade to 1.8.4-743, refresh patches
Signed-off-by: Ted Hess <thess@kitschensync.net>
2016-06-05 12:33:30 -04:00

15 lines
388 B
Diff

--- a/output_alsa.c
+++ b/output_alsa.c
@@ -911,8 +911,11 @@ void output_init_alsa(log_level level, c
LOG_INFO("memory locked");
}
+#ifdef M_TRIM_THRESHOLD
+ // mallopt is not defined in musl libc
mallopt(M_TRIM_THRESHOLD, -1);
mallopt(M_MMAP_MAX, 0);
+#endif
touch_memory(silencebuf, MAX_SILENCE_FRAMES * BYTES_PER_FRAME);
touch_memory(outputbuf->buf, outputbuf->size);