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/validation.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/validation.cpp') diff --git a/src/validation.cpp b/src/validation.cpp index 6fd796464..8ac9b1dfe 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1054,6 +1054,7 @@ CBlockIndex *pindexBestForkTip = nullptr, *pindexBestForkBase = nullptr; static void AlertNotify(const std::string& strMessage) { uiInterface.NotifyAlertChanged(); +#if defined(HAVE_SYSTEM) std::string strCmd = gArgs.GetArg("-alertnotify", ""); if (strCmd.empty()) return; @@ -1067,6 +1068,7 @@ static void AlertNotify(const std::string& strMessage) std::thread t(runCommand, strCmd); t.detach(); // thread runs free +#endif } static void CheckForkWarningConditions() EXCLUSIVE_LOCKS_REQUIRED(cs_main) -- cgit v1.2.3