From a670be05fee527ca86cc03f09dd3cd76187358ca Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 26 Mar 2009 19:22:48 +0100 Subject: [PATCH] fix compilation --without-curl --- src/lyrics.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lyrics.cpp b/src/lyrics.cpp index d614e1fe..908563ed 100644 --- a/src/lyrics.cpp +++ b/src/lyrics.cpp @@ -49,7 +49,10 @@ using std::string; const std::string Lyrics::Folder = home_folder + "/.lyrics"; bool Lyrics::Reload = 0; + +#ifdef HAVE_CURL_CURL_H bool Lyrics::Ready = 0; +#endif // HAVE_CURL_CURL_H std::string Lyrics::Filename; @@ -193,7 +196,9 @@ void *Lyrics::Get(void *song) *myLyrics->Main() << line; first = 0; } +# ifdef HAVE_CURL_CURL_H Ready = 1; +# endif // HAVE_CURL_CURL_H pthread_exit(NULL); } # ifdef HAVE_CURL_CURL_H