Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Face: Only restrict the default Face() to HAVE_UNISTD_H.
Browse files Browse the repository at this point in the history
  • Loading branch information
jefft0 committed Sep 14, 2017
1 parent dc29ed0 commit 50ba5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/face.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ Face::Face()
commandKeyChain_(0)
{
}
#endif

Face::Face(const char *host, unsigned short port)
: node_(new Node(ptr_lib::shared_ptr<TcpTransport>(new TcpTransport()),
ptr_lib::make_shared<TcpTransport::ConnectionInfo>(host, port))),
commandKeyChain_(0)
{
}
#endif

Face::Face(const ptr_lib::shared_ptr<Transport>& transport, const ptr_lib::shared_ptr<const Transport::ConnectionInfo>& connectionInfo)
: node_(new Node(transport, connectionInfo)), commandKeyChain_(0)
Expand Down

0 comments on commit 50ba5ce

Please sign in to comment.