From e99a97d9b785c6ce2acd6f5be8a7ec4386c07bbb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 3 Mar 2016 02:51:06 +0100 Subject: [PATCH] Some compilation fixes for compat_ifaddrs.c --- Makefile.common | 5 +++++ libretro-common/compat/compat_ifaddrs.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 6caf3209ff..dd953ce38d 100644 --- a/Makefile.common +++ b/Makefile.common @@ -941,6 +941,11 @@ ifeq ($(HAVE_NETWORKING), 1) OBJ += libretro-common/net/net_ifinfo.o endif + ifeq ($(WANT_IFADDRS), 1) + DEFINES += -DWANT_IFADDRS + OBJ += libretro-common/compat/compat_ifaddrs.o + endif + ifneq ($(findstring Win32,$(OS)),) LIBS += -lws2_32 endif diff --git a/libretro-common/compat/compat_ifaddrs.c b/libretro-common/compat/compat_ifaddrs.c index f08ecb4fd8..25418ba852 100644 --- a/libretro-common/compat/compat_ifaddrs.c +++ b/libretro-common/compat/compat_ifaddrs.c @@ -25,8 +25,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include -#include +#include #include +#include #include #ifndef _WIN32 @@ -35,6 +36,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include +#include #include #endif