summaryrefslogtreecommitdiff
path: root/databases/rrdtool/patches
diff options
context:
space:
mode:
authorrafal <rafal>2009-01-16 02:23:03 +0000
committerrafal <rafal>2009-01-16 02:23:03 +0000
commit63bce4cb6b8496eaebdc270db92d17ce822a1762 (patch)
tree2946b135187d3c2af6c2f46dc52d8fc7794d5e1f /databases/rrdtool/patches
parentdaf8c6df68fc90669b297f2bdb47b77f0721e15d (diff)
downloadpkgsrc-63bce4cb6b8496eaebdc270db92d17ce822a1762.tar.gz
Fix a LP64BE problem with 'rrdtool graph' where it claimed all graphs generated
were always of size 0x0. Patch already applied upstream.
Diffstat (limited to 'databases/rrdtool/patches')
-rw-r--r--databases/rrdtool/patches/patch-aa18
1 files changed, 18 insertions, 0 deletions
diff --git a/databases/rrdtool/patches/patch-aa b/databases/rrdtool/patches/patch-aa
new file mode 100644
index 00000000000..30da4edf7ef
--- /dev/null
+++ b/databases/rrdtool/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.13 2009/01/16 02:23:03 rafal Exp $
+
+Fix image sizes on LP64BE
+
+--- src/rrd_graph.c.orig 2008-10-04 12:04:04.000000000 -0400
++++ src/rrd_graph.c
+@@ -3551,9 +3551,9 @@ int rrd_graph(
+ *ymax = 0;
+ while (walker) {
+ if (strcmp(walker->key, "image_width") == 0) {
+- *xsize = walker->value.u_int;
++ *xsize = walker->value.u_cnt;
+ } else if (strcmp(walker->key, "image_height") == 0) {
+- *ysize = walker->value.u_int;
++ *ysize = walker->value.u_cnt;
+ } else if (strcmp(walker->key, "value_min") == 0) {
+ *ymin = walker->value.u_val;
+ } else if (strcmp(walker->key, "value_max") == 0) {