Skip to content

Commit 928685e

Browse files
MaxKellermannGirgias
authored andcommitted
Zend/zend_signal: include cleanup
1 parent 01e5ffc commit 928685e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Zend/zend_signal.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@
2828
#ifndef _GNU_SOURCE
2929
# define _GNU_SOURCE
3030
#endif
31-
#include <string.h>
3231

33-
#include "zend.h"
34-
#include "zend_globals.h"
32+
#include "zend_signal.h"
33+
#include "zend_alloc.h"
34+
#include "zend.h" // for zend_output_debug_string(), zend_error(), ...
35+
36+
#include <errno.h>
3537
#include <signal.h>
38+
#include <string.h>
3639

3740
#ifdef HAVE_UNISTD_H
3841
#include <unistd.h>

Zend/zend_signal.h

+9
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,18 @@
2121
#ifndef ZEND_SIGNAL_H
2222
#define ZEND_SIGNAL_H
2323

24+
#ifdef PHP_WIN32
25+
#include "config.w32.h"
26+
#else
27+
#include "php_config.h" // for ZEND_SIGNALS
28+
#endif
29+
2430
#ifdef ZEND_SIGNALS
2531

32+
#include "zend_portability.h" // for BEGIN_EXTERN_C
33+
2634
#include <signal.h>
35+
#include <stdbool.h>
2736

2837
#ifndef NSIG
2938
#define NSIG 65

0 commit comments

Comments
 (0)