]> granicus.if.org Git - procps-ng/commitdiff
top: provide own SIGRTMAX, if not already defined
authorJim Warner <james.warner@comcast.net>
Tue, 6 Dec 2011 22:24:04 +0000 (16:24 -0600)
committerCraig Small <csmall@enc.com.au>
Sun, 11 Dec 2011 11:28:11 +0000 (22:28 +1100)
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

diff --git a/top.c b/top.c
index 4b9fd4ec3ab977e7e3d3a04dbb3e1ed4989185f2..d114910ba7de2fbe00449501976648458a3afcb9 100644 (file)
--- 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;