aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/filesystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'wsutil/filesystem.c')
-rw-r--r--wsutil/filesystem.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c
index 2a2c4bab5f..a4e5ff075f 100644
--- a/wsutil/filesystem.c
+++ b/wsutil/filesystem.c
@@ -1033,7 +1033,6 @@ init_plugin_dir(void)
}
#endif
}
-#endif /* HAVE_PLUGINS || HAVE_LUA */
static void
init_plugin_pers_dir(void)
@@ -1041,6 +1040,8 @@ init_plugin_pers_dir(void)
plugin_pers_dir = get_persconffile_path(PLUGINS_DIR_NAME, FALSE);
}
+#endif /* HAVE_PLUGINS || HAVE_LUA */
+
/*
* Get the directory in which the plugins are stored.
*/
@@ -1059,9 +1060,13 @@ get_plugin_dir(void)
const char *
get_plugins_pers_dir(void)
{
+#if defined(HAVE_PLUGINS) || defined(HAVE_LUA)
if (!plugin_pers_dir)
init_plugin_pers_dir();
return plugin_pers_dir;
+#else
+ return NULL;
+#endif
}
#if defined(HAVE_EXTCAP)