summaryrefslogtreecommitdiff
path: root/databases/rrdtool/patches/patch-au
blob: a36ee7844fd815c12f8eb54b902ac7ad355258cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$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 <gd.h>
+
 #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 <gd.h>
 void gdImagePng(gdImagePtr im, FILE *out);
 
 int rrd_create_fn(char *file_name, rrd_t *rrd);