From afdc1dabafc566180b57ec64c9c5504c2c8e2775 Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 27 May 2009 13:11:22 +0000 Subject: [PATCH] Only include libgen.h when we have it. use pbbasename if we do not. Also fixes #223. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1818 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 9 +++++++-- src/rrd_graph.h | 4 ---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index a0de36e..594c9f6 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -6,11 +6,16 @@ #include -#include + +/* for basename */ +#ifdef HAVE_LIBGEN_H +# include +#eles +#include "plbasename.h" +#endif #ifdef WIN32 #include "strftime.h" -#include "plbasename.h" #endif #include "rrd_tool.h" diff --git a/src/rrd_graph.h b/src/rrd_graph.h index f029fd1..0593d4a 100644 --- a/src/rrd_graph.h +++ b/src/rrd_graph.h @@ -11,10 +11,6 @@ #include #include -#ifdef HAVE_LIBGEN_H -/* for basename */ -# include -#endif #include "rrd_tool.h" #include "rrd_rpncalc.h" -- 2.30.2