pkgsrc/databases/rrdtool/patches/patch-aq

25 lines
653 B
Text

$NetBSD: patch-aq,v 1.2 2000/05/07 13:55:17 wulf Exp $
--- src/rrd_tool.h.orig Tue May 2 21:21:49 2000
+++ src/rrd_tool.h Sun May 7 22:24:20 2000
@@ -14,6 +14,11 @@
#ifndef _RRD_TOOL_H
#define _RRD_TOOL_H
+/*
+ * gd.h needs to be called before math.h to avoid -Wshadow warnings
+ */
+#include <gd.h>
+
#ifdef WIN32
# include "ntconfig.h"
#else
@@ -142,7 +147,7 @@
int GifSize(FILE *, long *, long *);
int PngSize(FILE *, long *, long *);
int PngSize(FILE *, long *, long *);
-#include <gd.h>
+
void gdImagePng(gdImagePtr im, FILE *out);
int rrd_create_fn(char *file_name, rrd_t *rrd);
int rrd_fetch_fn(char *filename, enum cf_en cf_idx,