diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2019-03-14 11:30:37 +0100 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2019-06-06 11:54:26 +0200 |
commit | f874e14cd3c84cd412bd3fb42b3ee1706ca6a267 (patch) | |
tree | 26a3b6fc73c55d01cf1bbba8c00347529ae76d0b /src/validation.cpp | |
parent | cc3ad56ff2bc2583fe68c4a9e0b41072a47c0b07 (diff) |
[build]: check std::system for -[alert|block|wallet]notify
Platforms such as iOs do not support launching a process
through system().
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 6fd7964647..8ac9b1dfef 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) |