/* * * * *
* Magic *
* * * * */
-int rra_get (char ***ret)
+#if HAVE_LIBRRD
+static int rra_get (char ***ret)
{
static char **rra_def = NULL;
static int rra_num = 0;
*ret = rra_def;
return (rra_num);
}
+#endif /* HAVE_LIBRRD */
static int log_create_file (char *filename, char **ds_def, int ds_num)
{
FILE *log;
int i;
+ if (check_create_dir (filename))
+ return (-1);
+
log = fopen (filename, "w");
if (log == NULL)
{