Files
gentoo/sys-process/procps/files/procps-4.0.5-macos.patch
Sam James 9cc1a365bd sys-process/procps: backport several fixes to 4.0.5
* Security fix for bug #958286 (issue w/ legacy top configuration files)
* Fix build on macOS
* Fix build w/ old linux-headers for bug #911375
* Workaround for musl

Bug: https://bugs.gentoo.org/958286
Closes: https://bugs.gentoo.org/911375
Closes: https://bugs.gentoo.org/947680
Signed-off-by: Sam James <sam@gentoo.org>
2025-06-17 01:32:36 +01:00

29 lines
824 B
Diff

https://gitlab.com/procps-ng/procps/-/commit/2dc340e47669e0b0df7f71ff082e05ac5fa36615
From 2dc340e47669e0b0df7f71ff082e05ac5fa36615 Mon Sep 17 00:00:00 2001
From: Rui Chen <rui@chenrui.dev>
Date: Thu, 26 Dec 2024 11:09:18 -0500
Subject: [PATCH] local/signals.c: guard `SIGPOLL` to fix build on macOS
Signed-off-by: Rui Chen <rui@chenrui.dev>
---
local/signals.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/local/signals.c b/local/signals.c
index 6d68c07d..12656796 100644
--- a/local/signals.c
+++ b/local/signals.c
@@ -125,7 +125,9 @@ static const mapstruct sigtable[] = {
{"VTALRM", SIGVTALRM},
{"PROF", SIGPROF},
{"WINCH", SIGWINCH},
+#ifdef SIGPOLL
{"POLL", SIGPOLL}, // in SUSv3, prioritize over IO
+#endif
#ifdef SIGIO
{"IO", SIGIO}, // possibly = POLL
#endif
--
GitLab