Skip to content

Commit aa1cd02

Browse files
MaxKellermannGirgias
authored andcommitted
Zend/zend_fibers: include cleanup
1 parent 308fd31 commit aa1cd02

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Zend/zend_fibers.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20+
#include "zend_fibers.h"
21+
#include "zend_objects.h" // for zend_object_std_init()
2022
#include "zend.h"
2123
#include "zend_API.h"
2224
#include "zend_ini.h"
@@ -42,6 +44,9 @@
4244
# include <sys/mman.h>
4345
# include <limits.h>
4446

47+
# include <errno.h>
48+
# include <string.h> // for strerror()
49+
4550
# if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
4651
# define MAP_ANONYMOUS MAP_ANON
4752
# endif

Zend/zend_fibers.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@
2020
#ifndef ZEND_FIBERS_H
2121
#define ZEND_FIBERS_H
2222

23-
#include "zend_API.h"
24-
#include "zend_types.h"
23+
#include "zend_API.h" // for struct zend_fcall_info
24+
#include "zend_portability.h" // for BEGIN_EXTERN_C
25+
26+
#include <stddef.h>
2527

2628
#define ZEND_FIBER_GUARD_PAGES 1
2729

2830
#define ZEND_FIBER_DEFAULT_C_STACK_SIZE (4096 * (((sizeof(void *)) < 8) ? 256 : 512))
2931
#define ZEND_FIBER_VM_STACK_SIZE (1024 * sizeof(zval))
3032

33+
typedef struct _zend_fiber_context zend_fiber_context;
34+
3135
BEGIN_EXTERN_C()
3236

3337
typedef enum {

0 commit comments

Comments
 (0)