]> granicus.if.org Git - icinga2/commitdiff
Build fix for Windows
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 16 Dec 2014 20:25:58 +0000 (21:25 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 16 Dec 2014 20:28:16 +0000 (21:28 +0100)
refs #7805

lib/cli/replcommand.cpp

index 2247132772b02e3bdb93aa7609c84831b5e9a2fd..be2885210b4a196173e7d6abb4faaf62fe8cff45 100644 (file)
@@ -172,14 +172,18 @@ int ReplCommand::Run(const po::variables_map& vm, const std::vector<std::string>
                } else {
                        Socket::Ptr socket;
 
+#ifndef _WIN32
                        if (addr[0] == '/') {
                                UnixSocket::Ptr usocket = new UnixSocket();
                                usocket->Connect(addr);
                                socket = usocket;
                        } else {
+#endif /* _WIN32 */
                                Log(LogCritical, "ReplCommand", "Sorry, TCP sockets aren't supported yet.");
                                return 1;
+#ifndef _WIN32
                        }
+#endif /* _WIN32 */
 
                        String query = "SCRIPT " + session + "\n" + line + "\n\n";