fix compilation --without-curl

This commit is contained in:
Andrzej Rybczak
2009-08-28 01:50:40 +02:00
parent 75f9f840f7
commit caac726891

View File

@@ -805,6 +805,7 @@ void ReadConfiguration(ncmpcpp_config &conf)
{ {
conf.regex_type = REG_EXTENDED * (v != "basic"); conf.regex_type = REG_EXTENDED * (v != "basic");
} }
# ifdef HAVE_CURL_CURL_H
else if (cl.find("lyrics_database") != std::string::npos) else if (cl.find("lyrics_database") != std::string::npos)
{ {
if (!v.empty()) if (!v.empty())
@@ -813,6 +814,7 @@ void ReadConfiguration(ncmpcpp_config &conf)
conf.lyrics_db = n < Lyrics::DBs ? n : 0; conf.lyrics_db = n < Lyrics::DBs ? n : 0;
} }
} }
# endif // HAVE_CURL_CURL_H
else if (cl.find("lines_scrolled") != std::string::npos) else if (cl.find("lines_scrolled") != std::string::npos)
{ {
if (!v.empty()) if (!v.empty())