Files
buildroot/package/libshout/0002-legacy-include-stdlib.h.patch
Bernd Kuhls 31addc53be package/libshout: fix build with gcc >= 14.x
Fixes:
https://autobuild.buildroot.net/results/c53/c53b7b613269acddd3467865c11784f59062a943/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 5c5a28e461)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
2025-10-30 08:56:28 +01:00

31 lines
755 B
Diff

From 1742df325b52eef5af32c40893d821f895dc9d88 Mon Sep 17 00:00:00 2001
From: Alexandre Janniaux <ajanni@videolabs.io>
Date: Wed, 14 Sep 2022 16:30:03 +0200
Subject: [PATCH] legacy: include stdlib.h
free() had no previous declaration, making the build fail with clang.
Upstream: https://gitlab.xiph.org/xiph/icecast-libshout/-/merge_requests/4
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/legacy.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/legacy.c b/src/legacy.c
index 3e1d3d7..e0ed961 100644
--- a/src/legacy.c
+++ b/src/legacy.c
@@ -28,6 +28,8 @@
#include "shout_private.h"
#include "util.h"
+#include <stdlib.h> /* for free() */
+
int shout_set_format(shout_t *self, unsigned int format)
{
if (!self)
--
2.47.3