mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
time: Fix build with musl
(From OE-Core rev: a4dae0fa2d566a6b7bdda938c4d94a4d8b8e8dcf) 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,27 @@
|
|||||||
|
From cfef684e2c2c93c4a871d6c2a7af8f4c1b7c6741 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Tue, 18 Mar 2025 09:29:58 -0700
|
||||||
|
Subject: [PATCH] Fix the type for sighandler_t
|
||||||
|
|
||||||
|
__sighandler_t is private interface in glibc so its
|
||||||
|
better to not use it, as an aside fixes build with musl
|
||||||
|
|
||||||
|
Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2025-03/msg00000.html]
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
src/time.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/time.c b/src/time.c
|
||||||
|
index 7ff29a4..82eb66a 100644
|
||||||
|
--- a/src/time.c
|
||||||
|
+++ b/src/time.c
|
||||||
|
@@ -728,7 +728,7 @@ run_command (cmd, resp)
|
||||||
|
RESUSE *resp;
|
||||||
|
{
|
||||||
|
pid_t pid; /* Pid of child. */
|
||||||
|
- __sighandler_t interrupt_signal, quit_signal;
|
||||||
|
+ sighandler_t interrupt_signal, quit_signal;
|
||||||
|
int saved_errno;
|
||||||
|
|
||||||
|
resuse_start (resp);
|
||||||
@@ -16,6 +16,7 @@ BBCLASSEXTEND = "native nativesdk"
|
|||||||
SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \
|
SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \
|
||||||
file://0001-include-string.h-for-memset.patch \
|
file://0001-include-string.h-for-memset.patch \
|
||||||
file://time-1.9-Fix-compiling-with-GCC15.patch \
|
file://time-1.9-Fix-compiling-with-GCC15.patch \
|
||||||
|
file://0001-Fix-the-type-for-sighandler_t.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f"
|
SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f"
|
||||||
|
|||||||
Reference in New Issue
Block a user