diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-06-11 09:59:15 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-06-11 09:59:15 +0200 |
commit | 7ad6bcba1c1307dcd4fedd08ea8add6ee5f38aa0 (patch) | |
tree | d6d3350b87c0e350588ab1127a5daca0fda8b251 | |
parent | 958674d6d03e885adc18e7357a5a8905c4ce3d12 (diff) |
php-pecl-apcu: add patch for 5.4 build
-rw-r--r-- | apcu-pr74.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/apcu-pr74.patch b/apcu-pr74.patch new file mode 100644 index 0000000..5e4c02e --- /dev/null +++ b/apcu-pr74.patch @@ -0,0 +1,29 @@ +From db61fc22941e6179fe9bf29def99af6b16e0bb57 Mon Sep 17 00:00:00 2001 +From: Remi Collet <fedora@famillecollet.com> +Date: Wed, 11 Jun 2014 09:49:43 +0200 +Subject: [PATCH] Fix PHP 5.4 build + +--- + apc_bin.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/apc_bin.c b/apc_bin.c +index a8f705c..7ae4213 100644 +--- a/apc_bin.c ++++ b/apc_bin.c +@@ -34,6 +34,12 @@ + + #include "ext/standard/md5.h" + ++#ifdef HAVE_PTRDIFF_T ++#include <stddef.h> ++#else ++typedef long ptrdiff_t; ++#endif ++ + /* in apc_cache.c */ + extern zval* apc_copy_zval(zval* dst, const zval* src, apc_context_t* ctxt TSRMLS_DC); + +-- +1.9.3 + |