GNU/Hurd support

This commit is contained in:
Laszlo Boszormenyi (GCS)
2016-01-16 02:26:20 +01:00
parent 6d491a4289
commit be5ab6d5c9
6 changed files with 41 additions and 4 deletions

View File

@@ -252,8 +252,11 @@ zmq::fd_t zmq::ipc_connecter_t::connect ()
socklen_t len = sizeof (err);
#endif
int rc = getsockopt (s, SOL_SOCKET, SO_ERROR, (char*) &err, &len);
if (rc == -1)
if (rc == -1) {
if (errno == ENOPROTOOPT)
errno = 0;
err = errno;
}
if (err != 0) {
// Assert if the error was caused by 0MQ bug.