]> granicus.if.org Git - icinga2/commitdiff
Build fix
authorGunnar Beutner <gunnar@beutner.name>
Wed, 30 Sep 2015 09:05:20 +0000 (11:05 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 30 Sep 2015 09:05:20 +0000 (11:05 +0200)
refs #10245

lib/base/scriptutils.cpp
lib/base/utility.hpp

index a916e5a0ba48dfef34173a24971bef59a730b1fc..31f7ab7c4fad03c33aa4fca5b38bf77df55b3d69 100644 (file)
@@ -61,7 +61,9 @@ REGISTER_SAFE_SCRIPTFUNCTION(msi_get_component_path, &ScriptUtils::MsiGetCompone
 REGISTER_SAFE_SCRIPTFUNCTION(track_parents, &ScriptUtils::TrackParents);
 REGISTER_SAFE_SCRIPTFUNCTION(escape_shell_cmd, &Utility::EscapeShellCmd);
 REGISTER_SAFE_SCRIPTFUNCTION(escape_shell_arg, &Utility::EscapeShellArg);
+#ifdef _WIN32
 REGISTER_SAFE_SCRIPTFUNCTION(escape_create_process_arg, &Utility::EscapeCreateProcessArg);
+#endif /* _WIN32 */
 
 String ScriptUtils::CastString(const Value& value)
 {
index 839a5aca82d00a6989e00868df7876b0c609ae14..e0e51d3afa4afbfad5412206d7046170569657d4 100644 (file)
@@ -103,7 +103,9 @@ public:
 
        static String EscapeShellCmd(const String& s);
        static String EscapeShellArg(const String& s);
+#ifdef _WIN32
        static String EscapeCreateProcessArg(const String& arg);
+#endif /* _WIN32 */
 
        static String EscapeString(const String& s, const String& chars, const bool illegal);
        static String UnescapeString(const String& s);