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