aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 4a10f143..b13358c1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -57,11 +57,11 @@
#include "tag_pool.h"
#include "mpd_error.h"
-#ifdef ENABLE_INOTIFY
+#if CONFIG_INOTIFY
#include "inotify_update.h"
#endif
-#ifdef ENABLE_SQLITE
+#if CONFIG_LIBSQLITE3
#include "sticker.h"
#endif
@@ -188,7 +188,7 @@ glue_db_init_and_load(void)
static void
glue_sticker_init(void)
{
-#ifdef ENABLE_SQLITE
+#if CONFIG_LIBSQLITE3
GError *error = NULL;
char *sticker_file = config_dup_path(CONF_STICKER_FILE, &error);
if (sticker_file == NULL && error != NULL)
@@ -461,7 +461,7 @@ int mpd_main(int argc, char *argv[])
}
success = config_get_bool(CONF_AUTO_UPDATE, false);
-#ifdef ENABLE_INOTIFY
+#if CONFIG_INOTIFY
if (success && mapper_has_music_directory())
mpd_inotify_init(config_get_unsigned(CONF_AUTO_UPDATE_DEPTH,
G_MAXUINT));
@@ -491,7 +491,7 @@ int mpd_main(int argc, char *argv[])
g_main_loop_unref(main_loop);
-#ifdef ENABLE_INOTIFY
+#if CONFIG_INOTIFY
mpd_inotify_finish();
#endif
@@ -507,7 +507,7 @@ int mpd_main(int argc, char *argv[])
g_debug("db_finish took %f seconds",
((float)(clock()-start))/CLOCKS_PER_SEC);
-#ifdef ENABLE_SQLITE
+#if CONFIG_LIBSQLITE3
sticker_global_finish();
#endif