package/php-geoip: add php8 build support
Add a patch that allows php-geoip to compile against php8. Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
23f8a58e9a
commit
f08975d1e4
35
package/php-geoip/0001-add-build-support-for-php8.patch
Normal file
35
package/php-geoip/0001-add-build-support-for-php8.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 9500f9964a1ef03890376c61f1b17db88753c8e2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adam Duskett <aduskett@gmail.com>
|
||||||
|
Date: Mon, 28 Jun 2021 12:24:59 -0700
|
||||||
|
Subject: [PATCH] add build support for php8
|
||||||
|
|
||||||
|
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
||||||
|
---
|
||||||
|
php_geoip.h | 11 +++++++++++
|
||||||
|
1 file changed, 11 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/php_geoip.h b/php_geoip.h
|
||||||
|
index 2f67cb6..d19d612 100644
|
||||||
|
--- a/php_geoip.h
|
||||||
|
+++ b/php_geoip.h
|
||||||
|
@@ -30,6 +30,17 @@ extern zend_module_entry geoip_module_entry;
|
||||||
|
typedef long zend_long;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+/* Small change to let it build after a major internal change for php8.0
|
||||||
|
+ * More info:
|
||||||
|
+ * https://github.com/php/php-src/blob/php-8.0.0/UPGRADING.INTERNALS#L47
|
||||||
|
+ */
|
||||||
|
+#if PHP_MAJOR_VERSION >= 8
|
||||||
|
+# define TSRMLS_DC
|
||||||
|
+# define TSRMLS_D
|
||||||
|
+# define TSRMLS_CC
|
||||||
|
+# define TSRMLS_C
|
||||||
|
+# endif
|
||||||
|
+
|
||||||
|
#ifdef PHP_WIN32
|
||||||
|
#define PHP_GEOIP_API __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user