summaryrefslogtreecommitdiff
path: root/databases/php-tarantool/files/patch-src-tarantool_exception.c
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-11-06 11:21:58 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-11-06 11:21:58 +0000
commitf9f55b43a117805e41f249343b8dbb140f15e0ca (patch)
treec66e3141076c69d1f509dc4be5435c2c433fabc5 /databases/php-tarantool/files/patch-src-tarantool_exception.c
parentUpdate to 0.005 (diff)
Fix build with PHP 8.0
Diffstat (limited to '')
-rw-r--r--databases/php-tarantool/files/patch-src-tarantool_exception.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/databases/php-tarantool/files/patch-src-tarantool_exception.c b/databases/php-tarantool/files/patch-src-tarantool_exception.c
new file mode 100644
index 000000000000..177d221a3f68
--- /dev/null
+++ b/databases/php-tarantool/files/patch-src-tarantool_exception.c
@@ -0,0 +1,13 @@
+--- src/tarantool_exception.c.orig 2020-06-29 22:41:13 UTC
++++ src/tarantool_exception.c
+@@ -4,6 +4,10 @@
+
+ #include "tarantool_exception.h"
+
++#if PHP_MAJOR_VERSION >= 8
++#define TSRMLS_DC
++#endif
++
+ zend_class_entry *TarantoolException_ptr;
+ zend_class_entry *TarantoolIOException_ptr;
+ zend_class_entry *TarantoolClientError_ptr;