mirror of https://github.com/aria2/aria2
Use trunc as default value for --file-allocation on Android build
parent
4c139eb039
commit
d50021d045
|
@ -376,7 +376,12 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
|
||||||
OptionHandler* op(new ParameterOptionHandler
|
OptionHandler* op(new ParameterOptionHandler
|
||||||
(PREF_FILE_ALLOCATION,
|
(PREF_FILE_ALLOCATION,
|
||||||
TEXT_FILE_ALLOCATION,
|
TEXT_FILE_ALLOCATION,
|
||||||
|
#if defined(__ANDROID__) || defined(ANDROID)
|
||||||
|
// V_PREALLOC is too slow for Android device
|
||||||
|
V_TRUNC,
|
||||||
|
#else // !(defined(__ANDROID__) || defined(ANDROID))
|
||||||
V_PREALLOC,
|
V_PREALLOC,
|
||||||
|
#endif // !(defined(__ANDROID__) || defined(ANDROID))
|
||||||
std::vector<std::string>
|
std::vector<std::string>
|
||||||
(vbegin(params), vend(params)),
|
(vbegin(params), vend(params)),
|
||||||
'a'));
|
'a'));
|
||||||
|
|
Loading…
Reference in New Issue