aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2005-05-10 16:41:31 +0800
committerdemon <demon@FreeBSD.org>2005-05-10 16:41:31 +0800
commitedc867a0a557d87cc660ff688cd3ed56ad047acd (patch)
treec833b01ff74730c2d565901f32284a8cb2c03dad /databases
parentdf396482d4e4c6b056926e3b2790ec384d4f6b41 (diff)
downloadfreebsd-ports-gnome-edc867a0a557d87cc660ff688cd3ed56ad047acd.tar.gz
freebsd-ports-gnome-edc867a0a557d87cc660ff688cd3ed56ad047acd.tar.zst
freebsd-ports-gnome-edc867a0a557d87cc660ff688cd3ed56ad047acd.zip
Fix build with rrdtool 1.2.x.
Spotted by: kris
Diffstat (limited to 'databases')
-rw-r--r--databases/php4-rrdtool/files/patch-rrdtool.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/php4-rrdtool/files/patch-rrdtool.c b/databases/php4-rrdtool/files/patch-rrdtool.c
new file mode 100644
index 000000000000..951af3a8f254
--- /dev/null
+++ b/databases/php4-rrdtool/files/patch-rrdtool.c
@@ -0,0 +1,20 @@
+--- rrdtool.c.orig Thu Jun 12 03:27:51 2003
++++ rrdtool.c Tue May 10 12:39:24 2005
+@@ -331,6 +331,7 @@
+ HashTable *args_arr;
+ int i, xsize, ysize, argc;
+ char **argv, **calcpr;
++ double ymin, ymax;
+
+
+ if ( rrd_test_error() )
+@@ -377,7 +378,8 @@
+ }
+
+ optind = 0; opterr = 0;
+- if ( rrd_graph(argc-1, &argv[1], &calcpr, &xsize, &ysize) != -1 )
++ if ( rrd_graph(argc-1, &argv[1], &calcpr, &xsize, &ysize,
++ NULL, &ymin, &ymax) != -1 )
+ {
+ array_init(return_value);
+ add_assoc_long(return_value, "xsize", xsize);