$NetBSD: patch-aq,v 1.3 2000/12/05 11:15:42 wulf Exp $

--- src/rrd_tool.h.orig	Thu Sep 14 15:34:00 2000
+++ src/rrd_tool.h	Tue Dec  5 20:46:24 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
@@ -125,7 +130,6 @@
 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);
