2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

To fix compilation problem on gcc4.1.1(patch#1542283 by 
tizianomueller)
	* src/NameResolver.h: Added the prototype declaration of 
callback().
	
	To support c-ares library:
	
	* src/AbstractCommand.cc: Replaced HAVE_LIBARES with 
ENABLE_ASYNC_DNS
	* src/FeatureConfig.cc: Replaced HAVE_LIBARES with 
ENABLE_ASYNC_DNS
	* src/FtpInitiateConnectionCommand.h:
	Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
	* 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/HttpInitiateConnectionCommand.cc:
	Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
	* src/FtpInitiateConnectionCommand.cc:
	Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
	* src/DownloadEngine.h:
	Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
	* src/DownloadEngine.cc:
	Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
This commit is contained in:
Tatsuhiro Tsujikawa 2006-08-21 13:18:51 +00:00
parent 29d1723996
commit 4def45feb2
21 changed files with 263 additions and 88 deletions

View file

@ -26,9 +26,9 @@
class FtpInitiateConnectionCommand : public AbstractCommand {
private:
#ifdef HAVE_LIBARES
#ifdef ENABLE_ASYNC_DNS
NameResolverHandle nameResolver;
#endif // HAVE_LIBARES
#endif // ENABLE_ASYNC_DNS
bool useHttpProxy() const;
bool useHttpProxyGet() const;
bool useHttpProxyConnect() const;