From 7b343eaf5042513e14f4e2f0d0b698ea7c851e15 Mon Sep 17 00:00:00 2001 From: Viliam Mateicka Date: Sat, 24 Oct 2009 18:24:29 +0200 Subject: add --disable-inotify for configure to disable inotify when autodetected --- src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3