Code

Include libgen.h to get prototype for basename in a POSIX conformant way. Fix for...
[rrdtool-all.git] / program / src / rrd_graph.h
index 3f9a3f19fba4740645e9cec1cdb78152fa067dac..25e9db227c03fa3ca242cd5e83ef23ae413742db 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"