Skip to content

Commit bac72fb

Browse files
committed
fix
1 parent 7c2ce26 commit bac72fb

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Zend/zend_execute_API.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
#include "zend_inheritance.h"
3939
#include "zend_observer.h"
4040
#include "zend_timer.h"
41+
#ifdef HAVE_SYS_TIME_H
42+
#include <sys/time.h>
43+
#endif
44+
#ifdef HAVE_UNISTD_H
45+
#include <unistd.h>
46+
#endif
4147

4248
ZEND_API void (*zend_execute_ex)(zend_execute_data *execute_data);
4349
ZEND_API void (*zend_execute_internal)(zend_execute_data *execute_data, zval *return_value);

Zend/zend_globals.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222

2323

2424
#include <setjmp.h>
25-
#ifdef ZEND_TIMER
26-
#include <time.h>
27-
#include <signal.h>
28-
#endif
2925

3026
#include "zend_globals_macros.h"
3127

@@ -40,6 +36,7 @@
4036
#include "zend_multibyte.h"
4137
#include "zend_multiply.h"
4238
#include "zend_arena.h"
39+
#include "zend_timer.h"
4340

4441
/* Define ZTS if you want a thread-safe Zend */
4542
/*#undef ZTS*/
@@ -270,7 +267,7 @@ struct _zend_executor_globals {
270267
uint32_t num_errors;
271268
zend_error_info **errors;
272269

273-
#ifndef ZEND_TIMER
270+
#ifdef ZEND_TIMER
274271
timer_t timer;
275272
struct sigaction oldact;
276273
#endif

0 commit comments

Comments
 (0)