Skip to content

Commit c84d686

Browse files
committed
moar
1 parent e660c0b commit c84d686

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

TSRM/TSRM.h

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@
1818
# include <Zend/zend_config.w32.h>
1919
#else
2020
# include <main/php_config.h>
21+
# include <stdlib.h>
22+
# ifdef HAVE_SYS_TYPES_H
23+
# include <sys/types.h>
24+
# endif
25+
# ifdef HAVE_SYS_SELECT_H
26+
# include <sys/select.h>
27+
# endif
28+
# include <string.h>
2129
#endif
2230

23-
#include <stdlib.h>
24-
#ifdef HAVE_SYS_TYPES_H
25-
# include <sys/types.h>
26-
#endif
27-
#ifdef HAVE_SYS_SELECT_H
28-
#include <sys/select.h>
29-
#endif
30-
#include <string.h>
31-
3231
#include <stdint.h>
3332
#include <stdbool.h>
3433

Zend/zend.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@
2424

2525
#define ZEND_ENGINE_3
2626

27+
#if !defined(__CYGWIN__) && defined(_WIN32)
28+
# define TSRM_WIN32
29+
# include <Zend/zend_config.w32.h>
30+
#else
31+
# include <main/php_config.h>
32+
# include <stdlib.h>
33+
# ifdef HAVE_SYS_TYPES_H
34+
# include <sys/types.h>
35+
# endif
36+
# ifdef HAVE_SYS_SELECT_H
37+
# include <sys/select.h>
38+
# endif
39+
# include <string.h>
40+
#endif
41+
2742
#include "zend_types.h"
2843
#include "zend_map_ptr.h"
2944
#include "zend_errors.h"

0 commit comments

Comments
 (0)