diff --git a/src/networkremote/incomingdataparser.cpp b/src/networkremote/incomingdataparser.cpp index 189d9beca..110443f25 100644 --- a/src/networkremote/incomingdataparser.cpp +++ b/src/networkremote/incomingdataparser.cpp @@ -22,11 +22,14 @@ #include "core/logging.h" #include "engines/enginebase.h" #include "internet/internetmodel.h" -#include "internet/lastfmservice.h" #include "playlist/playlistmanager.h" #include "playlist/playlistsequence.h" #include "playlist/playlist.h" +#ifdef HAVE_LIBLASTFM +# include "internet/lastfmservice.h" +#endif + IncomingDataParser::IncomingDataParser(Application* app) :app_(app) { @@ -72,10 +75,12 @@ IncomingDataParser::IncomingDataParser(Application* app) connect(this, SIGNAL(Close(int)), app_->playlist_manager(), SLOT(Close(int))); +#ifdef HAVE_LIBLASTFM connect(this, SIGNAL(Love()), InternetModel::Service(), SLOT(Love())); connect(this, SIGNAL(Ban()), InternetModel::Service(), SLOT(Ban())); +#endif } IncomingDataParser::~IncomingDataParser() {