summaryrefslogtreecommitdiff
path: root/databases/rrdtool/patches/patch-ai
diff options
context:
space:
mode:
Diffstat (limited to 'databases/rrdtool/patches/patch-ai')
-rw-r--r--databases/rrdtool/patches/patch-ai38
1 files changed, 24 insertions, 14 deletions
diff --git a/databases/rrdtool/patches/patch-ai b/databases/rrdtool/patches/patch-ai
index e186cb7de77..b581e9bb5e9 100644
--- a/databases/rrdtool/patches/patch-ai
+++ b/databases/rrdtool/patches/patch-ai
@@ -1,25 +1,35 @@
-$NetBSD: patch-ai,v 1.3 2000/12/05 11:15:42 wulf Exp $
+$NetBSD: patch-ai,v 1.4 2001/09/24 13:10:48 wulf Exp $
---- src/rrd_graph.c.orig Thu Sep 14 15:34:00 2000
-+++ src/rrd_graph.c Tue Dec 5 20:57:36 2000
-@@ -6,12 +6,12 @@
+--- src/rrd_graph.c.orig Thu Feb 22 12:02:47 2001
++++ src/rrd_graph.c
+@@ -6,16 +6,26 @@
#include "rrd_tool.h"
#include <gd.h>
--#include <gdlucidan10.h>
--#include <gdlucidab12.h>
-+#include <gdfontt.h>
++#ifdef __NetBSD__
+#include <gdfonts.h>
++#include <gdfontt.h>
++#else
+ #include <gdlucidan10.h>
+ #include <gdlucidab12.h>
++#endif
#include <sys/stat.h>
+ #ifdef WIN32
+ #include <io.h>
+ #include <fcntl.h>
+ #endif
--#define SmallFont gdLucidaNormal10
--#define LargeFont gdLucidaBold12
++#ifdef __NetBSD__
+#define SmallFont gdFontTiny
+#define LargeFont gdFontSmall
++#else
+ #define SmallFont gdLucidaNormal10
+ #define LargeFont gdLucidaBold12
++#endif
/* #define DEBUG */
-@@ -38,7 +38,7 @@
+@@ -45,7 +55,7 @@
OP_MIN,OP_MAX,OP_LIMIT, OP_FLOOR, OP_CEIL,
OP_UN,OP_END};
@@ -28,7 +38,7 @@ $NetBSD: patch-ai,v 1.3 2000/12/05 11:15:42 wulf Exp $
typedef struct rpnp_t {
enum op_en op;
-@@ -340,7 +340,6 @@
+@@ -354,7 +364,6 @@
enum if_en if_conv(char *string){
@@ -36,7 +46,7 @@ $NetBSD: patch-ai,v 1.3 2000/12/05 11:15:42 wulf Exp $
conv_if(PNG,IF_PNG)
return (-1);
-@@ -2309,9 +2308,6 @@
+@@ -2437,9 +2446,6 @@
if ((fd = fopen(im->graphfile,"rb")) == NULL)
return 0; /* the file does not exist */
switch (im->imgformat) {
@@ -46,7 +56,7 @@ $NetBSD: patch-ai,v 1.3 2000/12/05 11:15:42 wulf Exp $
case IF_PNG:
size = PngSize(fd,&(im->xgif),&(im->ygif));
break;
-@@ -2570,9 +2566,6 @@
+@@ -2703,9 +2709,6 @@
}
}
switch (im->imgformat) {
@@ -56,7 +66,7 @@ $NetBSD: patch-ai,v 1.3 2000/12/05 11:15:42 wulf Exp $
case IF_PNG:
gdImagePng(gif, fo);
break;
-@@ -2687,7 +2680,7 @@
+@@ -2828,7 +2831,7 @@
im.prt_c = 0;
im.gdes_c = 0;
im.gdes = NULL;