diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c index 3fc91eb..e585f8e 100644 --- a/dlls/iphlpapi/ipstats.c +++ b/dlls/iphlpapi/ipstats.c @@ -1011,7 +1011,11 @@ DWORD getNumRoutes(void) /* Ignore all entries except for gateway routes which aren't multicast */ +#ifdef RTF_MULTICAST if (!(rtm->rtm_flags & RTF_GATEWAY) || (rtm->rtm_flags & RTF_MULTICAST)) +#else + if (!(rtm->rtm_flags & RTF_GATEWAY)) +#endif continue; RouteCount++; @@ -1087,8 +1091,12 @@ DWORD getRouteTable(PMIB_IPFORWARDTABLE *ppIpForwardTable, HANDLE heap, /* Ignore all entries except for gateway routes which aren't multicast */ - if (!(rtm->rtm_flags & RTF_GATEWAY) || - (rtm->rtm_flags & RTF_MULTICAST)) + +#ifdef RTF_MULTICAST + if (!(rtm->rtm_flags & RTF_GATEWAY) || (rtm->rtm_flags & RTF_MULTICAST)) +#else + if (!(rtm->rtm_flags & RTF_GATEWAY)) +#endif continue; memset (&table->table[table->dwNumEntries], 0,