Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 166248b

Browse files
Zend/zend_fibers: include cleanup
1 parent 6035c05 commit 166248b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

‎Zend/zend_fibers.c‎

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

20+
#include "zend_fibers.h"
2021
#include "zend.h"
2122
#include "zend_API.h"
2223
#include "zend_ini.h"
@@ -42,6 +43,9 @@
4243
# include <sys/mman.h>
4344
# include <limits.h>
4445

46+
# include <errno.h>
47+
# include <string.h> // for strerror()
48+
4549
# if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
4650
# define MAP_ANONYMOUS MAP_ANON
4751
# endif

‎Zend/zend_fibers.h‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,19 @@
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_string.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+
typedef struct _zend_fcall_info zend_fcall_info;
35+
3136
BEGIN_EXTERN_C()
3237

3338
typedef enum {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /