Solaris build fixed

This commit is contained in:
Martin Sustrik
2010-01-16 09:39:44 +01:00
parent a507d16e13
commit 51e012c446
4 changed files with 9 additions and 7 deletions

View File

@@ -211,8 +211,10 @@ int zmq::tcp_connecter_t::open ()
errno = err;
return -1;
}
else if (AF_LOCAL == sa->sa_family) {
s = socket (AF_LOCAL, SOCK_STREAM, 0);
else if (AF_UNIX == sa->sa_family) {
// Create the socket.
s = socket (AF_UNIX, SOCK_STREAM, 0);
if (s == -1)
return -1;