diff options
Diffstat (limited to 'ext/pcntl/php_signal.h')
-rw-r--r-- | ext/pcntl/php_signal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pcntl/php_signal.h b/ext/pcntl/php_signal.h index 1ad90700e2..a1dd131ce6 100644 --- a/ext/pcntl/php_signal.h +++ b/ext/pcntl/php_signal.h @@ -29,7 +29,11 @@ # define SIGRTMAX 64 #endif +#ifdef HAVE_STRUCT_SIGINFO_T +typedef void Sigfunc(int, siginfo_t*, void*); +#else typedef void Sigfunc(int); +#endif Sigfunc *php_signal(int signo, Sigfunc *func, int restart); Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all); |