From: Craig Small Date: Tue, 12 Oct 2021 20:56:39 +0000 (+1100) Subject: testsuite: Make test program compile on Hurd X-Git-Tag: v4.0.3_rc1~33^2~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc960774d5036f6123df217182f6925c41ec6a97;p=procps-ng 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 --- diff --git a/lib/test_process.c b/lib/test_process.c index f8ff5ed0..f323ca71 100644 --- a/lib/test_process.c +++ b/lib/test_process.c @@ -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);