$OpenBSD: patch-src_rrd_tool_h,v 1.1 2000/09/06 19:17:23 danh Exp $
$NetBSD: patch-aq,v 1.2 2000/05/07 13:55:17 wulf Exp $
--- src/rrd_tool.h.orig	Tue Aug 22 19:41:51 2000
+++ src/rrd_tool.h	Tue Aug 22 19:42:44 2000
@@ -14,6 +14,11 @@ extern "C" {
 #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 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);
