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)
This commit is contained in:
Jim Warner 2011-12-06 16:24:04 -06:00 committed by Craig Small
parent 1e4447d171
commit 80e2f59e05

3
top.c
View File

@ -2064,6 +2064,9 @@ static void before (char *me) {
memcpy(HHash_two, HHash_nul, sizeof(HHash_nul)); memcpy(HHash_two, HHash_nul, sizeof(HHash_nul));
#endif #endif
#ifndef SIGRTMAX // not available on hurd, maybe others too
#define SIGRTMAX 32
#endif
// lastly, establish a robust signals environment // lastly, establish a robust signals environment
sigemptyset(&sa.sa_mask); sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_RESTART; sa.sa_flags = SA_RESTART;