- Fix build errors with gcc14 (bsc#1220975): 0001-icy-include-stdlib-h-and-stdio-h.patch 0002-legacy-include-stdlib-h.patch OBS-URL: https://build.opensuse.org/request/show/1155474 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libshout?expand=0&rev=26
26 lines
636 B
Diff
26 lines
636 B
Diff
From 600fa105a799986efcccddfedfdfd3e9a1988cd0 Mon Sep 17 00:00:00 2001
|
|
From: Alexandre Janniaux <ajanni@videolabs.io>
|
|
Date: Wed, 14 Sep 2022 16:30:03 +0200
|
|
Subject: [PATCH 2/2] legacy: include stdlib.h
|
|
|
|
free() had no previous declaration, making the build fail with clang.
|
|
---
|
|
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)
|
|
--
|
|
GitLab
|