aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_stream.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-27 14:33:41 +0100
committerMax Kellermann <max@duempel.org>2008-12-27 14:33:41 +0100
commit0fe0425dee555027c94a39ca0bca5bac947f4702 (patch)
treeb56c3d787c766cda67b29dcd7664dbd516835373 /src/input_stream.c
parent4c13a276c4340752fe955057cbb8cae82163292d (diff)
downloadmpd-0fe0425dee555027c94a39ca0bca5bac947f4702.tar.gz
mpd-0fe0425dee555027c94a39ca0bca5bac947f4702.tar.xz
mpd-0fe0425dee555027c94a39ca0bca5bac947f4702.zip
disable archive API without plugins
When there are no archive plugins, we do not need the archive API at all. Drop all its overhead.
Diffstat (limited to '')
-rw-r--r--src/input_stream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input_stream.c b/src/input_stream.c
index 45b7ec5e9..3df8fe006 100644
--- a/src/input_stream.c
+++ b/src/input_stream.c
@@ -20,7 +20,10 @@
#include "config.h"
#include "input_file.h"
+
+#ifdef ENABLE_ARCHIVE
#include "input_archive.h"
+#endif
#ifdef HAVE_CURL
#include "input_curl.h"
@@ -31,7 +34,9 @@
static const struct input_plugin *const input_plugins[] = {
&input_plugin_file,
+#ifdef ENABLE_ARCHIVE
&input_plugin_archive,
+#endif
#ifdef HAVE_CURL
&input_plugin_curl,
#endif