-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
databases/pecl-rrd: Fix build with PHP 7.4.x
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- rrd.c.orig 2020-08-25 17:13:01 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; |