diff options
author | Martin Hurton <hurtonm@gmail.com> | 2010-02-10 17:14:21 +0100 |
---|---|---|
committer | Martin Hurton <hurtonm@gmail.com> | 2010-02-10 17:14:21 +0100 |
commit | 7cab423fc20e46f54fa561e51b566cc8a63ca5c1 (patch) | |
tree | fa926432b8392e7717b7fbc1ecaf973ba60cb970 /src | |
parent | bc9b7f1f54b9dcf754021f1f7eb766d71cc97f29 (diff) | |
parent | 354efc513fdb4096f8830e6c2e3e8f1311303e61 (diff) |
Merge branch 'master' of github.com:sustrik/zeromq2
Diffstat (limited to 'src')
-rw-r--r-- | src/fd_signaler.cpp | 4 | ||||
-rw-r--r-- | src/tcp_connecter.cpp | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/fd_signaler.cpp b/src/fd_signaler.cpp index 9ab307e..f1ec6af 100644 --- a/src/fd_signaler.cpp +++ b/src/fd_signaler.cpp @@ -249,10 +249,10 @@ void zmq::fd_signaler_t::signal (int signal_) uint64_t zmq::fd_signaler_t::poll () { // Set the reader to blocking mode. - int flags = fcntl (fd, F_GETFL, 0); + int flags = fcntl (r, F_GETFL, 0); if (flags == -1) flags = 0; - int rc = fcntl (fd, F_SETFL, flags & ~O_NONBLOCK); + int rc = fcntl (r, F_SETFL, flags & ~O_NONBLOCK); errno_assert (rc != -1); // Poll for events. diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp index 4df4fae..06214e2 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -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; |