From 7fdb167732489fcedb9ad86a20856352790c2853 Mon Sep 17 00:00:00 2001 From: Giuseppe Corbelli Date: Tue, 12 Jul 2016 15:58:17 +0200 Subject: [PATCH] [tests/testutil.hpp] Problem: wrong windows.hpp path Solution: correct path is ../src/windows.hpp. Also added automatic linking of iphlpapi library if required and using MSVC --- tests/testutil.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/testutil.hpp b/tests/testutil.hpp index d1e97ef5..bcbbd045 100644 --- a/tests/testutil.hpp +++ b/tests/testutil.hpp @@ -51,10 +51,14 @@ #include #if defined _WIN32 -# include "windows.hpp" +# include "../src/windows.hpp" # if defined _MSC_VER # include # pragma warning(disable:4996) +// iphlpapi is needed for if_nametoindex (not on Windows XP) +# if !defined ZMQ_HAVE_WINDOWS_TARGET_XP +# pragma comment(lib,"iphlpapi") +# endif # endif #else # include