From fda031576cd82bebc219e331994918f57475aa51 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 21 Aug 2006 13:31:49 +0000 Subject: [PATCH] 2006-08-21 Tatsuhiro Tsujikawa To fix the bug that causes compilation failure with metalink-support disabled(bug#1543587): * src/main.cc: Fixed with the patch by tizianomueller. --- ChangeLog | 9 ++++++++- src/main.cc | 7 +++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ca7bb880..be790a58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,7 +12,9 @@ * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS * src/HttpInitiateConnectionCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS - * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS + * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS. + Added thes upport of c-ares's ares_strerror(the idea came from patch + #1542285 by tizianomueller) * src/HttpInitiateConnectionCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS * src/FtpInitiateConnectionCommand.cc: @@ -22,6 +24,11 @@ * src/DownloadEngine.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS + To fix the bug that causes compilation failure with metalink-support + disabled(bug#1543587): + + * src/main.cc: Fixed with the patch by tizianomueller. + 2006-08-14 Tatsuhiro Tsujikawa * src/main.cc diff --git a/src/main.cc b/src/main.cc index 64aa5d39..6eae3e97 100644 --- a/src/main.cc +++ b/src/main.cc @@ -33,8 +33,6 @@ #include "DownloadEngineFactory.h" #include "UrlRequestInfo.h" #include "TorrentRequestInfo.h" -#include "MetalinkRequestInfo.h" -#include "Xml2MetalinkProcessor.h" #include #include #include @@ -46,6 +44,11 @@ extern char* optarg; extern int optind, opterr, optopt; #include +#ifdef ENABLE_METALINK +#include "MetalinkRequestInfo.h" +#include "Xml2MetalinkProcessor.h" +#endif + #ifdef HAVE_LIBSSL // for SSL # include