1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix build with rrdtool 1.2.

Spotted by:	kris
This commit is contained in:
Hye-Shik Chang 2005-05-10 06:10:21 +00:00
parent b3b2273ba8
commit 323973d144
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134970
4 changed files with 36 additions and 0 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= rrdtool_lgpl
PORTVERSION= 0.2.1
PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= py-rrdtool

View File

@ -0,0 +1,17 @@
--- src/_rrdtoolmodule.c.orig Tue May 10 15:02:49 2005
+++ src/_rrdtoolmodule.c Tue May 10 15:06:59 2005
@@ -232,11 +232,13 @@
PyObject *r;
char **argv, **calcpr;
int argc, xsize, ysize, i;
+ double ymin, ymax;
if (create_args("graph", args, &argc, &argv) < 0)
return NULL;
- if (rrd_graph(argc, argv, &calcpr, &xsize, &ysize) == -1) {
+ if (rrd_graph(argc, argv, &calcpr, &xsize, &ysize, NULL,
+ &ymin, &ymax) == -1) {
PyErr_SetString(ErrorObject, rrd_get_error());
rrd_clear_error();
r = NULL;

View File

@ -6,6 +6,7 @@
PORTNAME= rrdtool_lgpl
PORTVERSION= 0.2.1
PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= py-rrdtool

View File

@ -0,0 +1,17 @@
--- src/_rrdtoolmodule.c.orig Tue May 10 15:02:49 2005
+++ src/_rrdtoolmodule.c Tue May 10 15:06:59 2005
@@ -232,11 +232,13 @@
PyObject *r;
char **argv, **calcpr;
int argc, xsize, ysize, i;
+ double ymin, ymax;
if (create_args("graph", args, &argc, &argv) < 0)
return NULL;
- if (rrd_graph(argc, argv, &calcpr, &xsize, &ysize) == -1) {
+ if (rrd_graph(argc, argv, &calcpr, &xsize, &ysize, NULL,
+ &ymin, &ymax) == -1) {
PyErr_SetString(ErrorObject, rrd_get_error());
rrd_clear_error();
r = NULL;