Unverified Commit 49f4ef17 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #3595 from aixxe/master

Problem: Usage of 'if_nametoindex' not supported in Windows XP.
parents 69e451c1 63409579
# Permission to Relicense under MPLv2 or any other OSI approved license chosen by the current ZeroMQ BDFL
This is a statement by aixxe (aixxe)
that grants permission to relicense his copyrights in the libzmq C++
library (ZeroMQ) under the Mozilla Public License v2 (MPLv2) or any other
Open Source Initiative approved license chosen by the current ZeroMQ
BDFL (Benevolent Dictator for Life).
A portion of the commits made by the Github handle "aixxe", with commit author
"aixxe <me@aixxe.net>" are copyright of aixxe.
This document hereby grants the libzmq project team to relicense libzmq,
including all past, present and future contributions of the author listed above.
aixxe
2019/07/25
\ No newline at end of file
......@@ -104,11 +104,14 @@ int zmq::udp_address_t::resolve (const char *name_, bool bind_, bool ipv6_)
if (src_name == "*") {
_bind_interface = 0;
} else {
#if !defined ZMQ_HAVE_WINDOWS_TARGET_XP && !defined ZMQ_HAVE_WINDOWS_UWP \
&& !defined ZMQ_HAVE_VXWORKS
_bind_interface = if_nametoindex (src_name.c_str ());
if (_bind_interface == 0) {
// Error, probably not an interface name.
_bind_interface = -1;
}
#endif
}
has_interface = true;
......
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