Commit cfbeac6a authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #1722 from GreatFruitOmsk/master

Fix missing headers.
parents 55e8191a e7850410
......@@ -45,6 +45,7 @@
#endif
#else
#include <unistd.h>
#include <ctype.h>
#endif
#include "socket_base.hpp"
......@@ -197,11 +198,11 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool
zmq::socket_base_t::~socket_base_t ()
{
LIBZMQ_DELETE(mailbox);
if (reaper_signaler) {
LIBZMQ_DELETE(reaper_signaler);
}
stop_monitor ();
zmq_assert (destroyed);
}
......@@ -449,7 +450,7 @@ int zmq::socket_base_t::getsockopt (int option_, void *optval_,
*optvallen_ = sizeof (int);
EXIT_MUTEX ();
return 0;
}
}
int rc = options.getsockopt (option_, optval_, optvallen_);
EXIT_MUTEX ();
......@@ -463,7 +464,7 @@ int zmq::socket_base_t::add_signaler(signaler_t *s_)
if (!thread_safe) {
errno = EINVAL;
EXIT_MUTEX ();
return -1;
return -1;
}
((mailbox_safe_t*)mailbox)->add_signaler(s_);
......
......@@ -44,6 +44,7 @@
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <ctype.h>
#endif
#ifdef ZMQ_HAVE_SOLARIS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment