From 7ad6bcba1c1307dcd4fedd08ea8add6ee5f38aa0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 11 Jun 2014 09:59:15 +0200 Subject: php-pecl-apcu: add patch for 5.4 build --- apcu-pr74.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 apcu-pr74.patch 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 +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 ++#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 + -- cgit