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:
parent
1e4447d171
commit
80e2f59e05
3
top.c
3
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;
|
||||
|
Loading…
Reference in New Issue
Block a user