win32 multicasts

This commit is contained in:
Matej Sekoranja
2014-08-20 10:12:50 +02:00
parent b7f545aa06
commit 124972605a
2 changed files with 6 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -182,6 +182,11 @@ void test_getLoopbackNIF()
testOk1(htonl(0x0A000001) == addr.ia.sin_addr.s_addr);
}
#ifdef _WIN32
// needed for ip_mreq
#include <Ws2tcpip.h>
#endif
void test_multicast()
{
testDiag("Test test_multicast()");