--- IO-AIO/AIO.xs 2021/07/27 07:59:33 1.292 +++ IO-AIO/AIO.xs 2021/07/27 18:46:06 1.293 @@ -2683,8 +2683,8 @@ pidfd_send_signal (SV *pidfh, int sig, SV *siginfo = &PL_sv_undef, unsigned int flags = 0) PPCODE: { - #if HAVE_SIGINFO_T int res; +#if HAVE_SIGINFO_T siginfo_t si = { 0 }; if (SvOK (siginfo)) @@ -2706,9 +2706,9 @@ /*GENDEF0_SYSCALL(pidfd_send_signal,424)*/ res = syscall (SYS_pidfd_send_signal, s_fileno_croak (pidfh, 0), sig, SvOK (siginfo) ? &si : 0, flags); - #else +#else res = (errno = ENOSYS, -1); - #endif +#endif XPUSHs (sv_2mortal (newSViv (res))); }