summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-02-15 23:54:51 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-02-15 23:54:51 +0900
commit8d308699665de459e957a4298975e56d74ec2865 (patch)
tree2349328f1448a41e2d5c645f586a277d38e6c4e7
parentb5bab4097d8512bf532cbe614f497a45c77de9b1 (diff)
Fix compile error with --disable-bittorrent
-rw-r--r--src/RequestGroup.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc
index 0098acc4..40db093d 100644
--- a/src/RequestGroup.cc
+++ b/src/RequestGroup.cc
@@ -1264,10 +1264,15 @@ void RequestGroup::enableSeedOnly()
}
}
-bool RequestGroup::isSeeder() const {
+bool RequestGroup::isSeeder() const
+{
+#ifdef ENABLE_BITTORRENT
return downloadContext_->hasAttribute(CTX_ATTR_BT) &&
!bittorrent::getTorrentAttrs(downloadContext_)->metadata.empty() &&
downloadFinished();
+#else // !ENABLE_BITTORRENT
+ return false;
+#endif // !ENABLE_BITTORRENT
}
} // namespace aria2