Skip to content

Instantly share code, notes, and snippets.

@aquilax
Created June 26, 2013 12:38
Show Gist options
  • Save aquilax/5867067 to your computer and use it in GitHub Desktop.
Save aquilax/5867067 to your computer and use it in GitHub Desktop.
Patch for php_spread v.2.1.0 to compile on Ubunutu 12.04
From 07ef69e60ce7e8b44008bdce98a57c341970d24d Mon Sep 17 00:00:00 2001
From: aquilax <aquilax@gmail.com>
Date: Wed, 26 Jun 2013 12:34:11 +0000
Subject: [PATCH] Fixed
---
php_spread.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/php_spread.c b/php_spread.c
index 22651ab..da489bd 100755
--- a/php_spread.c
+++ b/php_spread.c
@@ -45,7 +45,6 @@
static int le_conn;
/* {{{ arginfo */
-static
ZEND_BEGIN_ARG_INFO_EX(arginfo_spread_connect, 0, 0, 1)
ZEND_ARG_INFO(0, spread_daemon)
ZEND_ARG_INFO(0, private_name)
@@ -867,7 +866,6 @@ try_again:
if (Is_reg_memb_mess(stype)) {
/* join/leave/disconnect/network */
- membership_info memb_info;
char *changed_member;
add_assoc_long(return_value, "group_size", ngrps);
@@ -886,6 +884,7 @@ try_again:
/* getting additional info */
#if (SPREAD_VERSION >> 24) >= 4
+ membership_info memb_info;
SP_get_memb_info(mess, stype, &memb_info);
changed_member = memb_info.changed_member;
#else
--
1.7.9.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment