summaryrefslogtreecommitdiffstats
path: root/rrd-build.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-01-29 14:16:10 +0100
committerRemi Collet <remi@php.net>2024-01-29 14:16:10 +0100
commit3ca8d8759423c12a82b7001ced8e9bcacda8a44c (patch)
treee6fedd1f1b14eeaccf6f9ca1c2ad22fad22c9258 /rrd-build.patch
parent5e4fc766e38d6d9f0fe47d4d68d8f342a992f0fb (diff)
fix incompatible pointer types using patch from
https://github.com/php/pecl-processing-rrd/pull/4
Diffstat (limited to 'rrd-build.patch')
-rw-r--r--rrd-build.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/rrd-build.patch b/rrd-build.patch
new file mode 100644
index 0000000..d19d96f
--- /dev/null
+++ b/rrd-build.patch
@@ -0,0 +1,31 @@
+From 7d36350f6398a2c4504c87db7128ef3ce47145d3 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 29 Jan 2024 14:12:23 +0100
+Subject: [PATCH] Fix incompatible pointer types
+
+---
+ rrd.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/rrd.c b/rrd.c
+index 526f094..ab19b41 100644
+--- a/rrd.c
++++ b/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;
+- zend_ulong step,
++ unsigned 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,7 +396,7 @@ PHP_FUNCTION(rrd_xport)
+ /* return values from rrd_xport */
+ int xxsize;
+ time_t start, end, time_index;
+- zend_ulong step, outvar_count;
++ unsigned long step, outvar_count;
+ char **legend_v;
+ rrd_value_t *data, *data_ptr;
+ zval zv_data;