Files
ports/security/pecl-gnupg/files/patch-phpc-phpc.h
T
Sunpoet Po-Chuan Hsieh 8058b23174 Fix build with PHP 8.0
2020-11-06 11:26:06 +00:00

17 lines
294 B
C

--- 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)