summaryrefslogtreecommitdiff
path: root/databases/php-tarantool/files/patch-src-tarantool_msgpack.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_msgpack.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_msgpack.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/databases/php-tarantool/files/patch-src-tarantool_msgpack.c b/databases/php-tarantool/files/patch-src-tarantool_msgpack.c
new file mode 100644
index 000000000000..ad47e883931a
--- /dev/null
+++ b/databases/php-tarantool/files/patch-src-tarantool_msgpack.c
@@ -0,0 +1,13 @@
+--- src/tarantool_msgpack.c.orig 2020-06-29 22:41:13 UTC
++++ src/tarantool_msgpack.c
+@@ -5,6 +5,10 @@
+
+ #include "third_party/msgpuck.h"
+
++#if PHP_MAJOR_VERSION >= 8
++#define TSRMLS_FETCH()
++#endif
++
+ #ifndef HASH_KEY_NON_EXISTENT
+ #define HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT
+ #endif /* HASH_KEY_NON_EXISTENT */