diff options
author | Bob Summerwill <bob@summerwill.net> | 2016-08-03 14:13:48 +0800 |
---|---|---|
committer | Bob Summerwill <bob@summerwill.net> | 2016-08-03 14:13:48 +0800 |
commit | 3fd8004d08b37b228abfb2ccb92a70bf6d905daf (patch) | |
tree | 73d39914cfededdaf27dcb3a6458c2b0c6b088c3 /test/RPCSession.cpp | |
parent | 71a7d2921cd929a380b4cdba4b71e72235dd85fb (diff) | |
download | dexon-solidity-3fd8004d08b37b228abfb2ccb92a70bf6d905daf.tar.gz dexon-solidity-3fd8004d08b37b228abfb2ccb92a70bf6d905daf.tar.zst dexon-solidity-3fd8004d08b37b228abfb2ccb92a70bf6d905daf.zip |
Fixed up broken ifdefs in new sockets code.
Diffstat (limited to 'test/RPCSession.cpp')
-rw-r--r-- | test/RPCSession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index c510a028..8ed9e9ac 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -34,6 +34,7 @@ using namespace dev; IPCSocket::IPCSocket(string const& _path): m_path(_path) { +#if defined(_WIN32) m_socket = CreateFile( m_path.c_str(), // pipe name GENERIC_READ | // read and write access @@ -47,7 +48,6 @@ IPCSocket::IPCSocket(string const& _path): m_path(_path) if (m_socket == INVALID_HANDLE_VALUE) BOOST_FAIL("Error creating IPC socket object"); -#if defined(_WIN32) #else if (_path.length() >= sizeof(sockaddr_un::sun_path)) BOOST_FAIL("Error opening IPC: socket path is too long!"); |