Commit c30da717 authored by Doron Somech's avatar Doron Somech Committed by GitHub

Merge pull request #2156 from yasirs/patch-WSL

Patch for compatibility with Windows subsystem for linux
parents 9780945d 36af3ede
......@@ -192,7 +192,7 @@ int zmq::tcp_address_t::resolve_nic_name (const char *nic_, bool ipv6_, bool is_
usleep ((backoff_msec << i) * 1000);
}
if (rc != 0 && errno == EINVAL) {
if (rc != 0 && ((errno == EINVAL) || (errno==EOPNOTSUPP))) {
// Windows Subsystem for Linux compatibility
LIBZMQ_UNUSED (nic_);
LIBZMQ_UNUSED (ipv6_);
......
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