From a3234f3f17f467cd3ec46d6a0d5f82e31118efb5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 3 Mar 2016 01:34:28 +0100 Subject: [PATCH] (net_ifinfo.c) ifndef this out for _WIN32 so far --- libretro-common/net/net_ifinfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libretro-common/net/net_ifinfo.c b/libretro-common/net/net_ifinfo.c index 5ba946f196..408ad356e4 100644 --- a/libretro-common/net/net_ifinfo.c +++ b/libretro-common/net/net_ifinfo.c @@ -24,15 +24,18 @@ #include #include +#ifndef _WIN32 #include #include #include #include #include +#endif void net_ifinfo_free(net_ifinfo_t *list) { +#ifndef _WIN32 unsigned k; if (!list) @@ -56,10 +59,12 @@ void net_ifinfo_free(net_ifinfo_t *list) } free(list->entries); free(list); +#endif } bool net_ifinfo_new(net_ifinfo_t *list) { +#ifndef _WIN32 unsigned k = 0; struct ifaddrs *ifa = NULL; struct ifaddrs *ifaddr = NULL; @@ -107,6 +112,7 @@ bool net_ifinfo_new(net_ifinfo_t *list) error: freeifaddrs(ifaddr); net_ifinfo_free(list); +#endif return false; }