Jelajahi Sumber

2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To fix the bug that causes compilation failure with
metalink-support
disabled(bug#1543587):

* src/main.cc: Fixed with the patch by tizianomueller.

Tatsuhiro Tsujikawa 19 tahun lalu
induk
melakukan
fda031576c
2 mengubah file dengan 13 tambahan dan 3 penghapusan
  1. 8 1
      ChangeLog
  2. 5 2
      src/main.cc

+ 8 - 1
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  <tujikawa at rednoah dot com>
 
 	* src/main.cc

+ 5 - 2
src/main.cc

@@ -33,8 +33,6 @@
 #include "DownloadEngineFactory.h"
 #include "UrlRequestInfo.h"
 #include "TorrentRequestInfo.h"
-#include "MetalinkRequestInfo.h"
-#include "Xml2MetalinkProcessor.h"
 #include <deque>
 #include <algorithm>
 #include <time.h>
@@ -46,6 +44,11 @@ extern char* optarg;
 extern int optind, opterr, optopt;
 #include <getopt.h>
 
+#ifdef ENABLE_METALINK
+#include "MetalinkRequestInfo.h"
+#include "Xml2MetalinkProcessor.h"
+#endif
+
 #ifdef HAVE_LIBSSL
 // for SSL
 # include <openssl/err.h>