mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
libburn: Fix build with gcc-15
Backport patch to fix the following error:
../libburn-1.5.6/test/poll.c: In function 'main':
../libburn-1.5.6/test/poll.c:67:27: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
67 | newact.sa_handler = catch_int;
| ^
../libburn-1.5.6/test/poll.c:17:13: note: 'catch_int' declared here
17 | static void catch_int ()
| ^~~~~~~~~
In file included from ../libburn-1.5.6/test/poll.c:9:
/home/worker/nano-ai/build-nano-ai/BUILD/work/qcs8550_aihub-webos-linux/libburn/1.5.6/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
make: *** [Makefile:1024: test/poll-poll.o] Error 1
Signed-off-by: Nguyen Dat Tho <tho3.nguyen@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
ffe4c94dca
commit
54c5800031
@ -0,0 +1,27 @@
|
|||||||
|
From d537f9dd35282df834a311ead5f113af67d223b3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Thomas Schmitt <scdbackup@gmx.net>
|
||||||
|
Date: Tue, 26 Nov 2024 23:02:03 +0100
|
||||||
|
Subject: [PATCH] Bug fix: Faulty signal handler prototype spoiled compilation
|
||||||
|
under C23
|
||||||
|
|
||||||
|
Upstream-Status: Backport [https://dev.lovelyhq.com/libburnia/libburn/commit/d537f9dd35282df834a311ead5f113af67d223b3]
|
||||||
|
---
|
||||||
|
test/poll.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/test/poll.c b/test/poll.c
|
||||||
|
index 660f384..cd5ff90 100644
|
||||||
|
--- a/test/poll.c
|
||||||
|
+++ b/test/poll.c
|
||||||
|
@@ -14,7 +14,7 @@ static struct burn_drive_info *drives;
|
||||||
|
static unsigned int n_drives;
|
||||||
|
int NEXT;
|
||||||
|
|
||||||
|
-static void catch_int ()
|
||||||
|
+static void catch_int (int signum)
|
||||||
|
{
|
||||||
|
NEXT = 1;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.34.1
|
||||||
|
|
||||||
@ -5,7 +5,9 @@ LICENSE = "GPL-2.0-or-later"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \
|
LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \
|
||||||
file://COPYRIGHT;md5=a91b9b862895b64e68e5b321873c9111"
|
file://COPYRIGHT;md5=a91b9b862895b64e68e5b321873c9111"
|
||||||
|
|
||||||
SRC_URI = "http://files.libburnia-project.org/releases/${BP}.tar.gz"
|
SRC_URI = "http://files.libburnia-project.org/releases/${BP}.tar.gz \
|
||||||
|
file://0001-Bug-fix-Faulty-signal-handler-prototype-spoiled-comp.patch"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "7295491b4be5eeac5e7a3fb2067e236e2955ffdc6bbd45f546466edee321644b"
|
SRC_URI[sha256sum] = "7295491b4be5eeac5e7a3fb2067e236e2955ffdc6bbd45f546466edee321644b"
|
||||||
|
|
||||||
inherit autotools pkgconfig lib_package
|
inherit autotools pkgconfig lib_package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user