From 80e2f59e05e0a51a962faca7af16d4ac56950d72 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Tue, 6 Dec 2011 16:24:04 -0600 Subject: [PATCH] top: provide own SIGRTMAX, if not already defined Protect against a compile failure, as on HURD. Reference: https://buildd.debian.org/status/package.php?p=procps&suite=sid top.c:2102:13: error: 'SIGRTMAX' undeclared (first use in this function) --- top.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/top.c b/top.c index 4b9fd4ec..d114910b 100644 --- a/top.c +++ b/top.c @@ -2064,6 +2064,9 @@ static void before (char *me) { memcpy(HHash_two, HHash_nul, sizeof(HHash_nul)); #endif +#ifndef SIGRTMAX // not available on hurd, maybe others too +#define SIGRTMAX 32 +#endif // lastly, establish a robust signals environment sigemptyset(&sa.sa_mask); sa.sa_flags = SA_RESTART;