summaryrefslogtreecommitdiff
path: root/ext/pcntl/php_signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcntl/php_signal.c')
-rw-r--r--ext/pcntl/php_signal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pcntl/php_signal.c b/ext/pcntl/php_signal.c
index 92ec411314..f61a363df6 100644
--- a/ext/pcntl/php_signal.c
+++ b/ext/pcntl/php_signal.c
@@ -20,16 +20,18 @@
#include "TSRM.h"
#include "php_signal.h"
+#include "Zend/zend.h"
+#include "Zend/zend_signal.h"
/* php_signal using sigaction is derrived from Advanced Programing
* in the Unix Environment by W. Richard Stevens p 298. */
Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all)
{
struct sigaction act,oact;
- act.sa_handler = func;
#ifdef ZEND_SIGNALS
TSRMLS_FETCH();
#endif
+ act.sa_handler = func;
if (mask_all) {
sigfillset(&act.sa_mask);