Fixed compile of the libraries with MinGW 4.8 on Windows.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6814 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-10-07 23:11:10 +00:00
parent 9b8d597c0d
commit 13e7ac8b43
11 changed files with 26 additions and 20 deletions

View file

@ -362,7 +362,11 @@ bool getLocalInterfaces(struct in_addr &routeAddr, std::list<struct in_addr> &ad
addr.s_addr = ipaddr.dwAddr;
rs_sprintf(out, "Iface(%ld) => %s\n", ipaddr.dwIndex, rs_inet_ntoa(addr).c_str());
#if __MINGW_MAJOR_VERSION <= 3
unsigned short wType = ipaddr.unused2; // should be wType
#else
unsigned short wType = ipaddr.wType;
#endif
if (wType & MIB_IPADDR_DISCONNECTED)
{
pqioutput(PQL_DEBUG_BASIC, pqinetzone, "Interface disconnected, " + out);