summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-08-22 18:45:21 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-19 03:43:24 +0200
commit814691489a3258b0882c4f6c320d85962f60af70 (patch)
tree460aaa22cc5627467729e20fb4ffcc33e5a11839 /desktop/source
parent467946389310007d4847af4970fec9f2a478137b (diff)
fix windows build
Change-Id: I260e2a6266d8bac2ad10b85d67721222049fce47
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/app/updater.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx
index 92dfe838e99b..6b4b930b51a3 100644
--- a/desktop/source/app/updater.cxx
+++ b/desktop/source/app/updater.cxx
@@ -9,10 +9,13 @@
#include "updater.hxx"
+#if UNX
#include <unistd.h>
#include <errno.h>
#include <fstream>
+#endif
+
#include <config_folders.h>
#include <rtl/bootstrap.hxx>
@@ -37,7 +40,13 @@ class error_updater : public std::exception
static const char kUserAgent[] = "UpdateChecker/1.0 (Linux)";
+#if UNX
const char* pUpdaterName = "updater";
+#elif WNT
+const char* pUpdaterName = "updater.exe";
+#else
+#error "Need implementation"
+#endif
const char* pSofficeExeName = "soffice";
@@ -170,10 +179,13 @@ void Update()
char** pArgs = createCommandLine();
+#if UNX
if (execv(aPath.getStr(), pArgs))
{
printf("execv failed with error %d %s\n",errno,strerror(errno));
}
+#endif
+
for (size_t i = 0; i < 8; ++i)
{
delete[] pArgs[i];