summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-01 12:28:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-01 12:43:56 +0300
commit9fc83299bfb029328f19671efae42a7f4b4d465a (patch)
tree5b4ebdad73b787c2b196a10a4903b51d997bc76f /src/net
parent7e5386bc62f1f61d3409219292e1ec0d71cbd28e (diff)
downloadplus-9fc83299bfb029328f19671efae42a7f4b4d465a.tar.gz
plus-9fc83299bfb029328f19671efae42a7f4b4d465a.tar.bz2
plus-9fc83299bfb029328f19671efae42a7f4b4d465a.tar.xz
plus-9fc83299bfb029328f19671efae42a7f4b4d465a.zip
add in renameFile function support for nacl.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/download.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index 38b8d2873..0f25d56d8 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -26,6 +26,7 @@
#include "logger.h"
#include "main.h"
+#include "utils/files.h"
#include "utils/sdlhelper.h"
#include <curl/curl.h>
@@ -364,12 +365,7 @@ int Download::downloadThread(void *ptr)
if (!d->mOptions.cancel)
{
::remove(d->mFileName.c_str());
-#if defined __native_client__
- Files::renameFile(
-#else
- ::rename(
-#endif
- outFilename.c_str(), d->mFileName.c_str());
+ Files::renameFile(outFilename, d->mFileName);
// Check if we can open it and no errors were encountered
// during renaming