aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorViliam Mateicka <viliam.mateicka@gmail.com>2009-10-24 18:24:29 +0200
committerViliam Mateicka <viliam.mateicka@gmail.com>2009-10-24 18:24:29 +0200
commit7b343eaf5042513e14f4e2f0d0b698ea7c851e15 (patch)
tree0f0025d8589c73c15f35bd1b69d274ea7cf2b996 /src
parentac830468bf5bad039dd7198bdbd3b73ceb6c7b32 (diff)
downloadmpd-7b343eaf5042513e14f4e2f0d0b698ea7c851e15.tar.gz
mpd-7b343eaf5042513e14f4e2f0d0b698ea7c851e15.tar.xz
mpd-7b343eaf5042513e14f4e2f0d0b698ea7c851e15.zip
add --disable-inotify for configure to disable inotify when autodetected
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index dfd5d49d8..49190af71 100644
--- a/src/main.c
+++ b/src/main.c
@@ -56,7 +56,10 @@
#include "dirvec.h"
#include "songvec.h"
#include "tag_pool.h"
+
+#ifdef ENABLE_INOTIFY
#include "inotify_update.h"
+#endif
#ifdef ENABLE_SQLITE
#include "sticker.h"
@@ -369,8 +372,10 @@ int main(int argc, char *argv[])
glue_state_file_init();
+#ifdef ENABLE_INOTIFY
if (mapper_has_music_directory())
mpd_inotify_init();
+#endif
config_global_check();
@@ -386,7 +391,9 @@ int main(int argc, char *argv[])
g_main_loop_unref(main_loop);
+#ifdef ENABLE_INOTIFY
mpd_inotify_finish();
+#endif
state_file_finish();
pc_kill();