File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
1
#ifdef HAVE_CONFIG_H
2
2
#include "config.h"
3
3
#endif
4
+
4
5
#include "common.h"
5
6
#include "php_network.h"
6
7
#include <sys/types.h>
7
- #ifndef _MSC_VER
8
- #include <netinet/tcp.h> /* TCP_NODELAY */
9
- #include <sys/socket.h>
10
- #endif
8
+
11
9
#ifdef HAVE_REDIS_IGBINARY
12
10
#include "igbinary/igbinary.h"
13
11
#endif
12
+
14
13
#ifdef HAVE_REDIS_LZF
15
14
#include <lzf.h>
16
15
#endif
16
+
17
17
#include <zend_exceptions.h>
18
18
#include "php_redis.h"
19
19
#include "library.h"
29
29
#define SCORE_DECODE_INT 1
30
30
#define SCORE_DECODE_DOUBLE 2
31
31
32
- #ifdef PHP_WIN32
32
+ #ifndef PHP_WIN32
33
+ #include <netinet/tcp.h> /* TCP_NODELAY */
34
+ #include <sys/socket.h> /* SO_KEEPALIVE */
35
+ #else
36
+ #include <winsock.h>
37
+
33
38
# if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION <= 4
34
39
/* This proto is available from 5.5 on only */
35
40
PHP_REDIS_API int usleep (unsigned int useconds );
Original file line number Diff line number Diff line change 25
25
#include "redis_commands.h"
26
26
27
27
#include "php_network.h"
28
- #include <netinet/tcp.h> /* TCP_KEEPALIVE */
28
+
29
+ #ifndef PHP_WIN32
30
+ #include <netinet/tcp.h> /* TCP_KEEPALIVE */
31
+ #else
32
+ #include <winsock.h>
33
+ #endif
29
34
30
35
#include <zend_exceptions.h>
31
36
You can’t perform that action at this time.
0 commit comments