testsuite: Make test program compile on Hurd
procps fails to build from source due to usage of field si_int of struct siginfo_t in lib/test_process.c which does not exist on GNU/Hurd. Thanks to Svante Signell for the patch. References: https://bugs.debian.org/987557 Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
parent
67c150ed7c
commit
d39d9db079
@ -62,7 +62,11 @@ signal_handler(int signum, siginfo_t *siginfo, void *ucontext)
|
||||
printf("SIG %s\n", signame);
|
||||
break;
|
||||
case SI_QUEUE:
|
||||
printf("SIG %s value=%d\n", signame, siginfo->si_int);
|
||||
# ifndef __GNU__
|
||||
printf("SIG %s value=%d\n", signame, siginfo->si_int);
|
||||
# else
|
||||
printf("case SI_QUEUE: SIG %s siginfo->si_int undefined\n", signame);
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
printf("Unknown si_code %d\n", siginfo->si_code);
|
||||
|
Loading…
Reference in New Issue
Block a user