From e50969e31ccfafe48e17f0fc094e4b48a4e0d886 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Jan 2014 23:09:36 +0100 Subject: db/proxy: fix for libmpdclient < 2.9 --- src/db/ProxyDatabasePlugin.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx index 90b381027..b5ed09eb3 100644 --- a/src/db/ProxyDatabasePlugin.cxx +++ b/src/db/ProxyDatabasePlugin.cxx @@ -525,7 +525,11 @@ Visit(struct mpd_connection *connection, VisitPlaylist visit_playlist, Error &error) { const char *path = mpd_directory_get_path(directory); +#if LIBMPDCLIENT_CHECK_VERSION(2,9,0) time_t mtime = mpd_directory_get_last_modified(directory); +#else + time_t mtime = 0; +#endif if (visit_directory && !visit_directory(LightDirectory(path, mtime), error)) -- cgit v1.2.3