summaryrefslogtreecommitdiff
path: root/epan/filesystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/filesystem.c')
-rw-r--r--epan/filesystem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/filesystem.c b/epan/filesystem.c
index 98aec53936..f58e1e32f1 100644
--- a/epan/filesystem.c
+++ b/epan/filesystem.c
@@ -618,6 +618,7 @@ get_datafile_dir(void)
return datafile_dir;
}
+#ifdef HAVE_PLUGINS
/*
* Find the directory where the plugins are stored.
*
@@ -687,6 +688,7 @@ init_plugin_dir(void)
plugin_dir = PLUGIN_DIR;
#endif
}
+#endif /* HAVE_PLUGINS */
/*
* Get the directory in which the plugins are stored.
@@ -694,8 +696,12 @@ init_plugin_dir(void)
const char *
get_plugin_dir(void)
{
+#ifdef HAVE_PLUGINS
if (!plugin_dir) init_plugin_dir();
return plugin_dir;
+#else
+ return NULL;
+#endif
}
/*