From ccb3d8639d2955015989fabe8b82ec28fa236756 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 30 Oct 2018 18:42:54 +0100 Subject: [PATCH] Use correct name for aria2c on windows. --- src/aria2.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aria2.cpp b/src/aria2.cpp index d4dbc7913..544057006 100644 --- a/src/aria2.cpp +++ b/src/aria2.cpp @@ -36,7 +36,11 @@ Aria2::Aria2(): std::string rpc_secret = "--rpc-secret=" + m_secret; m_secret = "token:"+m_secret; +#ifdef _WIN32 + callCmd.push_back("aria2c.exe"); +#else callCmd.push_back("aria2c"); +#endif callCmd.push_back("--enable-rpc"); callCmd.push_back(rpc_secret.c_str()); callCmd.push_back(rpc_port.c_str());