new news
[rrdtool.git] / src / rrd_graph.c
index a0de36e..1ea457b 100644 (file)
@@ -6,15 +6,20 @@
 
 
 #include <sys/stat.h>
-#include <libgen.h>
 
 #ifdef WIN32
 #include "strftime.h"
-#include "plbasename.h"
 #endif
 
 #include "rrd_tool.h"
 
+/* for basename */
+#ifdef HAVE_LIBGEN_H
+#  include <libgen.h>
+#else
+#include "plbasename.h"
+#endif
+
 #if defined(WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
 #include <io.h>
 #include <fcntl.h>