From 814691489a3258b0882c4f6c320d85962f60af70 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 22 Aug 2016 18:45:21 +0200 Subject: fix windows build Change-Id: I260e2a6266d8bac2ad10b85d67721222049fce47 --- desktop/source/app/updater.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'desktop/source') 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 #include #include +#endif + #include #include @@ -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]; -- cgit