From 124972605acb49367a6b63af4bbbfc08d805c0c7 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Wed, 20 Aug 2014 10:12:50 +0200 Subject: [PATCH] win32 multicasts --- pvtoolsSrc/eget.cpp | 2 +- testApp/utils/testInetAddressUtils.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pvtoolsSrc/eget.cpp b/pvtoolsSrc/eget.cpp index 02e982a..8f9d969 100644 --- a/pvtoolsSrc/eget.cpp +++ b/pvtoolsSrc/eget.cpp @@ -46,7 +46,7 @@ bool transpose = false; bool dumpStructure = false; -#ifdef WIN32 +#ifdef _WIN32 FILE *popen(const char *command, const char *mode) { return _popen(command, mode); } diff --git a/testApp/utils/testInetAddressUtils.cpp b/testApp/utils/testInetAddressUtils.cpp index 4cb95c9..8ae10f6 100644 --- a/testApp/utils/testInetAddressUtils.cpp +++ b/testApp/utils/testInetAddressUtils.cpp @@ -182,6 +182,11 @@ void test_getLoopbackNIF() testOk1(htonl(0x0A000001) == addr.ia.sin_addr.s_addr); } +#ifdef _WIN32 +// needed for ip_mreq +#include +#endif + void test_multicast() { testDiag("Test test_multicast()");