diff options
author | Max Kellermann <max@duempel.org> | 2014-01-22 23:09:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-22 23:09:36 +0100 |
commit | e50969e31ccfafe48e17f0fc094e4b48a4e0d886 (patch) | |
tree | d82dc7d0e69857dee5d004bec0a9641832ebf3ae | |
parent | a6d9998e1d24ac9d160f71c0807f0ebb82ce2666 (diff) | |
download | mpd-e50969e31ccfafe48e17f0fc094e4b48a4e0d886.tar.gz mpd-e50969e31ccfafe48e17f0fc094e4b48a4e0d886.tar.xz mpd-e50969e31ccfafe48e17f0fc094e4b48a4e0d886.zip |
db/proxy: fix for libmpdclient < 2.9
-rw-r--r-- | src/db/ProxyDatabasePlugin.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |