Permalink
Browse files

Fix build on solaris

  • Loading branch information...
1 parent cfe2a82 commit 56aa49ff3d67fd7d643adfc88cc9625b3ca06b07 @mkoppanen mkoppanen committed Feb 17, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/ipc_listener.cpp
View
@@ -97,18 +97,18 @@ void zmq::ipc_listener_t::in_event ()
int zmq::ipc_listener_t::get_address (std::string *addr_)
{
- struct sockaddr_un sun;
+ struct sockaddr_un saddr;
int rc;
// Get the details of the IPC socket
- socklen_t sl = sizeof(sockaddr_un);
- rc = getsockname (s, (sockaddr *)&sun, &sl);
+ socklen_t sl = sizeof(sockaddr_un);
+ rc = getsockname (s, (sockaddr *)&saddr, &sl);
if (rc != 0) {
return rc;
}
-
+
// Store the address for retrieval by users using wildcards
- *addr_ = std::string("ipc://") + std::string(sun.sun_path);
+ *addr_ = std::string("ipc://") + std::string(saddr.sun_path);
return 0;
}

0 comments on commit 56aa49f

Please sign in to comment.