Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2010-10-12 16:23:02 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-10-12 16:23:02 +0400
commitcab7f8e3c8eb32a95a8df9ee9b32b251a29aa423 (patch)
tree548132967a009ce599fa17932e8555dc8a96774b
parentfe8046a81e48d9141584f3d4f81d887d917bbbb1 (diff)
Fixes for static compilation.
-rw-r--r--common.h5
-rwxr-xr-xphp_redis.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/common.h b/common.h
index 36174071..c8f31130 100644
--- a/common.h
+++ b/common.h
@@ -1,6 +1,9 @@
#include "php.h"
#include "php_ini.h"
+#ifndef REDIS_COMMON_H
+#define REDIS_COMMON_H
+
#define redis_sock_name "Redis Socket Buffer"
#define REDIS_SOCK_STATUS_FAILED 0
#define REDIS_SOCK_STATUS_DISCONNECTED 1
@@ -145,3 +148,5 @@ typedef struct {
void
free_reply_callbacks(zval *z_this, RedisSock *redis_sock);
+
+#endif
diff --git a/php_redis.h b/php_redis.h
index e1cd4f70..ef68756e 100755
--- a/php_redis.h
+++ b/php_redis.h
@@ -18,6 +18,8 @@
+----------------------------------------------------------------------+
*/
+#include "common.h"
+
#ifndef PHP_REDIS_H
#define PHP_REDIS_H