Build fix for Windows

refs #7805
This commit is contained in:
Gunnar Beutner 2014-12-16 21:25:58 +01:00
parent 5e1182a5c7
commit aa795c1b81
1 changed files with 4 additions and 0 deletions

View File

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