diff options
author | Max Kellermann <max@duempel.org> | 2014-02-18 21:05:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-18 21:47:01 +0100 |
commit | 0053cd0d0d5a9b5ef54d604d2c650ee3803a04e5 (patch) | |
tree | 61620a43dd7e47994fa97d4b2b44e704fac3be06 /src | |
parent | c32477a223ad09dc0fc0708e95e09799eecb930b (diff) | |
download | mpd-0053cd0d0d5a9b5ef54d604d2c650ee3803a04e5.tar.gz mpd-0053cd0d0d5a9b5ef54d604d2c650ee3803a04e5.tar.xz mpd-0053cd0d0d5a9b5ef54d604d2c650ee3803a04e5.zip |
Main: disable inotify check without database
Fix build failure.
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index 2657d54f1..de74925e5 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -71,16 +71,15 @@ #include "db/plugins/SimpleDatabasePlugin.hxx" #include "storage/Configured.hxx" #include "storage/CompositeStorage.hxx" +#ifdef ENABLE_INOTIFY +#include "db/update/InotifyUpdate.hxx" +#endif #endif #ifdef ENABLE_NEIGHBOR_PLUGINS #include "neighbor/Glue.hxx" #endif -#ifdef ENABLE_INOTIFY -#include "db/update/InotifyUpdate.hxx" -#endif - #ifdef ENABLE_SQLITE #include "sticker/StickerDatabase.hxx" #endif @@ -519,6 +518,7 @@ int mpd_main(int argc, char *argv[]) instance->partition->outputs.SetReplayGainMode(replay_gain_get_real_mode(instance->partition->playlist.queue.random)); +#ifdef ENABLE_DATABASE if (config_get_bool(CONF_AUTO_UPDATE, false)) { #ifdef ENABLE_INOTIFY if (instance->storage != nullptr && @@ -533,6 +533,7 @@ int mpd_main(int argc, char *argv[]) "inotify: auto_update was disabled. enable during compilation phase"); #endif } +#endif config_global_check(); @@ -557,7 +558,7 @@ int mpd_main(int argc, char *argv[]) /* cleanup */ -#ifdef ENABLE_INOTIFY +#if defined(ENABLE_DATABASE) && defined(ENABLE_INOTIFY) mpd_inotify_finish(); #endif |