diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c
index 729652603e6a42319d5b8c8b5efb9100463e8d82..c4243557e6dd3d1816781b1c84d54b9131647b2d 100644 (file)
--- a/program/src/rrd_tool.c
+++ b/program/src/rrd_tool.c
int HandleInputLine(int argc, char **argv, FILE* out)
{
+#if defined(HAVE_OPENDIR) && defined (HAVE_READDIR)
DIR *curdir; /* to read current dir with ls */
struct dirent *dent;
+#endif
+#if defined(HAVE_SYS_STAT_H)
struct stat st;
+#endif
optind=0; /* reset gnu getopt */
opterr=0; /* no error messages */