Fix build with PHP 8.0
This commit is contained in:
parent
0898eed49d
commit
8058b23174
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=554226
16
security/pecl-gnupg/files/patch-phpc-phpc.h
Normal file
16
security/pecl-gnupg/files/patch-phpc-phpc.h
Normal file
@ -0,0 +1,16 @@
|
||||
--- phpc/phpc.h.orig 2016-08-29 19:02:44 UTC
|
||||
+++ phpc/phpc.h
|
||||
@@ -29,6 +29,13 @@
|
||||
#error "Only PHP 5.2+ supported"
|
||||
#endif
|
||||
|
||||
+#if PHP_MAJOR_VERSION >= 8
|
||||
+#define TSRMLS_C
|
||||
+#define TSRMLS_CC
|
||||
+#define TSRMLS_DC
|
||||
+#define TSRMLS_FETCH()
|
||||
+#endif
|
||||
+
|
||||
/* no operation */
|
||||
#define PHPC_NOOP ((void) 0)
|
||||
|
Loading…
Reference in New Issue
Block a user