1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

Fix build with PHP 7.4

PR:		248961
Submitted by:	garga
This commit is contained in:
Florian Smeets 2020-09-16 20:05:00 +00:00
parent 7a41ab86ea
commit 3f4b740e8d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=548797
2 changed files with 25 additions and 1 deletions

View File

@ -12,6 +12,5 @@ LICENSE= PHP301
LIB_DEPENDS= librrd.so:databases/rrdtool
USES= php:pecl localbase pkgconfig
IGNORE_WITH_PHP= 74
.include <bsd.port.mk>

View File

@ -0,0 +1,25 @@
--- rrd.c.orig 2020-08-28 12:06:18 UTC
+++ rrd.c
@@ -55,7 +55,7 @@ PHP_FUNCTION(rrd_fetch)
rrd_args *argv;
/* returned values if rrd_fetch doesn't fail */
time_t start, end;
- ulong step,
+ u_long step,
ds_cnt; /* count of data sources */
char **ds_namv; /* list of data source names */
rrd_value_t *ds_data; /* all data from all sources */
@@ -396,11 +396,11 @@ PHP_FUNCTION(rrd_xport)
/* return values from rrd_xport */
int xxsize;
time_t start, end, time_index;
- ulong step, outvar_count;
+ u_long step, outvar_count;
char **legend_v;
rrd_value_t *data, *data_ptr;
zval zv_data;
- ulong outvar_index;
+ u_long outvar_index;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "a", &zv_arr_options) == FAILURE) {
return;