diff --git a/ChangeLog b/ChangeLog index 17a10b05..b9e0a35d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-05-20 Tatsuhiro Tsujikawa + + Fixed compile error when configured with --without-gnutls + --without-openssl + * src/main.cc + * test/DefaultBtProgressInfoFileTest.cc + * test/SegmentManTest.cc + 2008-05-20 Tatsuhiro Tsujikawa Fixed compile error with OpenSSL. @@ -10838,4 +10846,4 @@ 2006-02-17 Tatsuhiro Tsujikawa * Release 0.1.0 - \ No newline at end of file + diff --git a/src/main.cc b/src/main.cc index 5540832f..1c3ca8fd 100644 --- a/src/main.cc +++ b/src/main.cc @@ -66,6 +66,7 @@ #include "NullStatCalc.h" #include "StringFormat.h" #include "A2STR.h" +#include "RecoverableException.h" #ifdef ENABLE_METALINK # include "MetalinkHelper.h" # include "Metalink2RequestGroup.h" diff --git a/test/DefaultBtProgressInfoFileTest.cc b/test/DefaultBtProgressInfoFileTest.cc index 4c30f620..94c9ece4 100644 --- a/test/DefaultBtProgressInfoFileTest.cc +++ b/test/DefaultBtProgressInfoFileTest.cc @@ -2,7 +2,9 @@ #include "Option.h" #include "Util.h" #include "Exception.h" +#ifdef ENABLE_BITTORRENT #include "MockBtContext.h" +#endif // ENABLE_BITTORRENT #include "MockPeerStorage.h" #include "MockPieceStorage.h" #include "BtRuntime.h" @@ -19,15 +21,21 @@ namespace aria2 { class DefaultBtProgressInfoFileTest:public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(DefaultBtProgressInfoFileTest); +#ifdef ENABLE_BITTORRENT CPPUNIT_TEST(testSave); - CPPUNIT_TEST(testSave_nonBt); CPPUNIT_TEST(testLoad); +#endif // ENABLE_BITTORRENT + CPPUNIT_TEST(testSave_nonBt); CPPUNIT_TEST(testLoad_nonBt); CPPUNIT_TEST(testLoad_nonBt_pieceLengthShorter); CPPUNIT_TEST(testUpdateFilename); CPPUNIT_TEST_SUITE_END(); private: + +#ifdef ENABLE_BITTORRENT SharedHandle _btContext; +#endif // ENABLE_BITTORRENT + SharedHandle _pieceStorage; SharedHandle