Skip to content

Commit 7f9b06a

Browse files
author
Andrea Magnetto
committed
Don't use if_indextoname on Windows Server 2003
1 parent b946c18 commit 7f9b06a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ip_resolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ int zmq::ip_resolver_t::get_interface_name (unsigned long index_,
585585

586586
char *if_name_result = NULL;
587587

588-
#if _WIN32_WINNT > _WIN32_WINNT_WINXP && !defined ZMQ_HAVE_WINDOWS_UWP
588+
#if _WIN32_WINNT >= 0x0600 && !defined ZMQ_HAVE_WINDOWS_UWP
589589
if_name_result = if_indextoname (index_, buffer);
590590
#endif
591591

0 commit comments

Comments
 (0)