$NetBSD: patch-au,v 1.4 2003/02/16 23:09:01 seb Exp $ --- src/rrd_tool.h.orig Fri Oct 11 18:39:48 2002 +++ src/rrd_tool.h @@ -17,6 +17,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 + #ifdef WIN32 # include "ntconfig.h" #else @@ -128,7 +133,6 @@ int GifSize(FILE *, long *, long *); int PngSize(FILE *, long *, long *); int PngSize(FILE *, long *, long *); -#include void gdImagePng(gdImagePtr im, FILE *out); int rrd_create_fn(char *file_name, rrd_t *rrd);