package/libsvgtiny: add patch to fix GCC 15.x build issue
Add a small, easily backportable patch to fix GCC 15.x build issue. The issue is also fixed upstream in later releases, but this patch is a minimal fix that can be backported to LTS independently from a version bump. Fixes: https://autobuild.buildroot.org/results/c3d703663faabe40448d908afbdbb351a016aece/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
b10f50399a
commit
6fdebc54b3
@@ -0,0 +1,42 @@
|
||||
From 1d86ce7e6ea9fae8285eed23d838f87ab3ac083c Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Tue, 19 Aug 2025 23:28:35 +0200
|
||||
Subject: [PATCH] src/{svgtiny_gradient,svgtiny_list}.c: add missing <stdlib.h>
|
||||
|
||||
Needed to get the prototype for malloc()/free().
|
||||
|
||||
Upstream: N/A, already fixed upstream in a later release (but as part
|
||||
of a larger commit)
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
src/svgtiny_gradient.c | 1 +
|
||||
src/svgtiny_list.c | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/svgtiny_gradient.c b/src/svgtiny_gradient.c
|
||||
index 3a8db73..5172223 100644
|
||||
--- a/src/svgtiny_gradient.c
|
||||
+++ b/src/svgtiny_gradient.c
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
#include "svgtiny.h"
|
||||
#include "svgtiny_internal.h"
|
||||
|
||||
diff --git a/src/svgtiny_list.c b/src/svgtiny_list.c
|
||||
index 53cfb34..91e2c98 100644
|
||||
--- a/src/svgtiny_list.c
|
||||
+++ b/src/svgtiny_list.c
|
||||
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
+#include <stdlib.h>
|
||||
#include "svgtiny.h"
|
||||
#include "svgtiny_internal.h"
|
||||
|
||||
--
|
||||
2.50.1
|
||||
|
||||
Reference in New Issue
Block a user