From: oetiker Date: Wed, 27 May 2009 13:11:22 +0000 (+0000) Subject: Only include libgen.h when we have it. use pbbasename if we do not. Also fixes #223. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=afdc1dabafc566180b57ec64c9c5504c2c8e2775;p=rrdtool.git 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 --- 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"