Fix build with PHP 7.4 and unbreak this port

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-12-08 16:59:51 +00:00
parent 1af4119d78
commit 2c46cded70
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519384
2 changed files with 20 additions and 1 deletions

View File

@ -22,7 +22,6 @@ BUILD_DEPENDS= swig3.0:devel/swig30
LIB_DEPENDS= libgeos_c.so:graphics/geos
USES= localbase:ldflags php:ext
IGNORE_WITH_PHP= 74
WRKSRC= ${WRKDIR}/php-${PORTNAME}

View File

@ -0,0 +1,20 @@
--- geos.c.orig 2016-12-24 10:53:24 UTC
+++ geos.c
@@ -863,7 +863,7 @@ PHP_METHOD(Geometry, buffer)
GEOS_PHP_ZVAL data;
HashTable *style;
zend_string *key;
- ulong index;
+ zend_ulong index;
this = (GEOSGeometry*)getRelay(getThis(), Geometry_ce_ptr);
@@ -956,7 +956,7 @@ PHP_METHOD(Geometry, offsetCurve)
GEOS_PHP_ZVAL data;
HashTable *style;
zend_string *key;
- ulong index;
+ zend_ulong index;
this = (GEOSGeometry*)getRelay(getThis(), Geometry_ce_ptr);