mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Fix build with rrdtool 1.2.x.
Spotted by: kris
This commit is contained in:
parent
5d944271ea
commit
959321377f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134973
20
databases/php4-rrdtool/files/patch-rrdtool.c
Normal file
20
databases/php4-rrdtool/files/patch-rrdtool.c
Normal file
@ -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);
|
20
net/php4-rrdtool/files/patch-rrdtool.c
Normal file
20
net/php4-rrdtool/files/patch-rrdtool.c
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user