From f874e14cd3c84cd412bd3fb42b3ee1706ca6a267 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Thu, 14 Mar 2019 11:30:37 +0100 Subject: [build]: check std::system for -[alert|block|wallet]notify Platforms such as iOs do not support launching a process through system(). --- src/util/system.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util/system.cpp') diff --git a/src/util/system.cpp b/src/util/system.cpp index 6925bda4e..86606ea44 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -1122,6 +1122,7 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate) } #endif +#if defined(HAVE_SYSTEM) void runCommand(const std::string& strCommand) { if (strCommand.empty()) return; @@ -1133,6 +1134,7 @@ void runCommand(const std::string& strCommand) if (nErr) LogPrintf("runCommand error: system(%s) returned %d\n", strCommand, nErr); } +#endif void SetupEnvironment() { -- cgit v1.2.3