mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-15 15:16:52 +02:00
ZMQII-69: Make 0MQ build on HP-UX
This commit is contained in:
@@ -268,7 +268,11 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
|
||||
// Following code should handle both Berkeley-derived socket
|
||||
// implementations and Solaris.
|
||||
int err = 0;
|
||||
socklen_t len = sizeof err;
|
||||
#if defined ZMQ_HAVE_HPUX
|
||||
int len = sizeof (err);
|
||||
#else
|
||||
socklen_t len = sizeof (err);
|
||||
#endif
|
||||
int rc = getsockopt (s, SOL_SOCKET, SO_ERROR, (char*) &err, &len);
|
||||
if (rc == -1)
|
||||
err = errno;
|
||||
|
Reference in New Issue
Block a user