mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
[build]: check std::system for -[alert|block|wallet]notify
Platforms such as iOs do not support launching a process through system().
This commit is contained in:
parent
cc3ad56ff2
commit
f874e14cd3
7 changed files with 19 additions and 1 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue