diff --git a/configure.ac b/configure.ac index 951d77bf..2d83aef1 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,7 @@ AC_C_RESTRICT AC_TYPE_SIZE_T AC_TYPE_SSIZE_T AC_CHECK_MEMBERS([struct stat.st_rdev]) +AC_CHECK_MEMBERS([siginfo_t.si_int], [], [], [[#include ]]) dnl libtool LT_INIT diff --git a/lib/test_process.c b/lib/test_process.c index f07f1d2c..ef2582e8 100644 --- a/lib/test_process.c +++ b/lib/test_process.c @@ -62,9 +62,9 @@ signal_handler(int signum, siginfo_t *siginfo, void *ucontext) printf("SIG %s\n", signame); break; case SI_QUEUE: -# ifndef __GNU__ +#ifdef HAVE_SIGINFO_T_SI_INT printf("SIG %s value=%d\n", signame, siginfo->si_int); -# else +#else printf("case SI_QUEUE: SIG %s siginfo->si_int undefined\n", signame); #endif break;