(WiiU) Buildfix (#14103)

This commit is contained in:
Cthulhu-throwaway 2022-06-25 14:19:26 -03:00 committed by GitHub
parent 14e5cd317b
commit e961f27786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,9 +38,11 @@
#include <compat/ifaddrs.h>
#elif !defined(HAVE_LIBNX) && !defined(_3DS)
#include <ifaddrs.h>
#ifndef WIIU
#include <net/if.h>
#endif
#endif
#endif
#include <net/net_ifinfo.h>
@ -222,8 +224,10 @@ failure:
{
if (!addr->ifa_addr)
continue;
#ifndef WIIU
if (!(addr->ifa_flags & IFF_UP))
continue;
#endif
switch (addr->ifa_addr->sa_family)
{
@ -255,8 +259,10 @@ failure:
if (!addr->ifa_addr)
continue;
#ifndef WIIU
if (!(addr->ifa_flags & IFF_UP))
continue;
#endif
switch (addr->ifa_addr->sa_family)
{