mirror of https://github.com/aria2/aria2
Fixed compile error without BitTorrent support
parent
c8191700b1
commit
d4e9b07719
|
@ -1147,6 +1147,7 @@ void changeOption
|
||||||
util::applyDir(grOption->get(PREF_DIR), grOption->get(PREF_OUT)));
|
util::applyDir(grOption->get(PREF_DIR), grOption->get(PREF_OUT)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef ENABLE_BITTORRENT
|
||||||
if(option.defined(PREF_DIR) || option.defined(PREF_INDEX_OUT)) {
|
if(option.defined(PREF_DIR) || option.defined(PREF_INDEX_OUT)) {
|
||||||
if(dctx->hasAttribute(bittorrent::BITTORRENT)) {
|
if(dctx->hasAttribute(bittorrent::BITTORRENT)) {
|
||||||
std::istringstream indexOutIn(grOption->get(PREF_INDEX_OUT));
|
std::istringstream indexOutIn(grOption->get(PREF_INDEX_OUT));
|
||||||
|
@ -1160,6 +1161,7 @@ void changeOption
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // ENABLE_BITTORRENT
|
||||||
if(option.defined(PREF_MAX_DOWNLOAD_LIMIT)) {
|
if(option.defined(PREF_MAX_DOWNLOAD_LIMIT)) {
|
||||||
group->setMaxDownloadSpeedLimit
|
group->setMaxDownloadSpeedLimit
|
||||||
(grOption->getAsInt(PREF_MAX_DOWNLOAD_LIMIT));
|
(grOption->getAsInt(PREF_MAX_DOWNLOAD_LIMIT));
|
||||||
|
|
Loading…
Reference in New Issue