mirror of
https://git.yoctoproject.org/poky
synced 2026-04-05 08:02:25 +02:00
time: Fix build with GCC 15
Initialize interrupt_signal and quit_signal with correct type (From OE-Core rev: ed19b9a801fb5410e7c9e37bd29453b3c8d8e0be) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
From 831194f0be7733c99c7a2c69d9e9695b82e05010 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Poho=C5=99elsk=C3=BD?= <opohorel@redhat.com>
|
||||
Date: Thu, 30 Jan 2025 08:48:47 +0100
|
||||
Subject: [PATCH] time: fix compiling with GCC15
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
GCC15 complains about incompatible pointer type in run_command()
|
||||
Initialize interrupt_signal and quit_signal with correct type
|
||||
|
||||
Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2025-01/msg00000.html]
|
||||
Signed-off-by: Ondřej Pohořelský <opohorel@redhat.com>
|
||||
---
|
||||
src/time.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/time.c b/src/time.c
|
||||
index 7b401bc..c8d7ab0 100644
|
||||
--- a/src/time.c
|
||||
+++ b/src/time.c
|
||||
@@ -803,7 +803,7 @@ run_command (cmd, resp)
|
||||
RESUSE *resp;
|
||||
{
|
||||
pid_t pid; /* Pid of child. */
|
||||
- sighandler interrupt_signal, quit_signal;
|
||||
+ __sighandler_t interrupt_signal, quit_signal;
|
||||
int saved_errno;
|
||||
|
||||
resuse_start (resp);
|
||||
--
|
||||
2.48.1
|
||||
|
||||
@@ -15,6 +15,7 @@ BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \
|
||||
file://0001-include-string.h-for-memset.patch \
|
||||
file://time-1.9-Fix-compiling-with-GCC15.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f"
|
||||
|
||||
Reference in New Issue
Block a user