Include libgen.h to get prototype for basename in a POSIX conformant way. Fix for...
[rrdtool.git] / src / rrd_graph.h
index 3f9a3f1..25e9db2 100644 (file)
 #include <cairo-ps.h>
 #include <pango/pangocairo.h>
 
+#ifdef HAVE_LIBGEN_H
+/* for basename */
+#  include <libgen.h>
+#endif
+
 #include "rrd_tool.h"
 #include "rrd_rpncalc.h"