Skip to content

Commit cab7f8e

Browse files
committed
Fixes for static compilation.
1 parent fe8046a commit cab7f8e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

common.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#include "php.h"
22
#include "php_ini.h"
33

4+
#ifndef REDIS_COMMON_H
5+
#define REDIS_COMMON_H
6+
47
#define redis_sock_name "Redis Socket Buffer"
58
#define REDIS_SOCK_STATUS_FAILED 0
69
#define REDIS_SOCK_STATUS_DISCONNECTED 1
@@ -145,3 +148,5 @@ typedef struct {
145148

146149
void
147150
free_reply_callbacks(zval *z_this, RedisSock *redis_sock);
151+
152+
#endif

php_redis.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
+----------------------------------------------------------------------+
1919
*/
2020

21+
#include "common.h"
22+
2123
#ifndef PHP_REDIS_H
2224
#define PHP_REDIS_H
2325

0 commit comments

Comments
 (0)