]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
pull in libgen.h, needed for basename() 401/head
authorStuart Henderson <stu@spacehopper.org>
Sat, 15 Jun 2013 09:08:43 +0000 (10:08 +0100)
committerStuart Henderson <stu@spacehopper.org>
Sat, 15 Jun 2013 09:08:43 +0000 (10:08 +0100)
src/rrdupdate.c

index bcebdede836d543215d9c4782cbe48f6e252591f..0c6f123ece1e489a230a93949bc36ef6a18949a5 100644 (file)
@@ -9,7 +9,12 @@
 #include "rrd_config.h"
 
 #include "rrd.h"
+/* for basename */
+#ifdef HAVE_LIBGEN_H
+#  include <libgen.h>
+#else
 #include "plbasename.h"
+#endif
 
 int main(
     int argc,