aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/system.cpp2
-rw-r--r--src/util/system.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp
index 87ff6e62ba..0f599b85f1 100644
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -1114,6 +1114,7 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate)
}
#endif
+#if defined(HAVE_SYSTEM)
void runCommand(const std::string& strCommand)
{
if (strCommand.empty()) return;
@@ -1125,6 +1126,7 @@ void runCommand(const std::string& strCommand)
if (nErr)
LogPrintf("runCommand error: system(%s) returned %d\n", strCommand, nErr);
}
+#endif
void SetupEnvironment()
{
diff --git a/src/util/system.h b/src/util/system.h
index 15d7b1b402..fd0583658b 100644
--- a/src/util/system.h
+++ b/src/util/system.h
@@ -89,7 +89,9 @@ fs::path GetConfigFile(const std::string& confPath);
#ifdef WIN32
fs::path GetSpecialFolderPath(int nFolder, bool fCreate = true);
#endif
+#if defined(HAVE_SYSTEM)
void runCommand(const std::string& strCommand);
+#endif
/**
* Most paths passed as configuration arguments are treated as relative to