From 070bc0e2b5f9645cf147cbf96cdf4f76cb1dfef0 Mon Sep 17 00:00:00 2001
From: atraczyk <andreastraczyk@gmail.com>
Date: Mon, 19 Dec 2016 16:49:04 -0500
Subject: [PATCH] build: windows UWP API support

- system is not supported in the UWP API

Change-Id: I884e998f499a8c19aa52db1d67df5b90ac890587
Tuleap: #790
---
 src/hooks/urlhook.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/hooks/urlhook.cpp b/src/hooks/urlhook.cpp
index dedfc563be..eeaa48e0da 100644
--- a/src/hooks/urlhook.cpp
+++ b/src/hooks/urlhook.cpp
@@ -28,7 +28,11 @@ int UrlHook::runAction(const std::string &command, const std::string &args)
     //FIXME : use fork and execve, so no need to escape shell arguments
     const std::string cmd = command + (args.empty() ? "" : " ") +
                             "\"" + args + "\" &";
-    return system(cmd.c_str());
+#ifndef RING_UWP
+    return system(cmd.c_str());
+#else
+    return 0;
+#endif
 }
 
 } // namespace ring
-- 
GitLab