From d5503e9e7cc46ff953c2094bac30c15076f1c222 Mon Sep 17 00:00:00 2001 From: meleu Date: Wed, 7 Mar 2018 18:11:30 -0300 Subject: [PATCH] fix a bad in_addr manipulation on VITA - fixes #6127 (#6366) added VITA condition --- libretro-common/net/net_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/net/net_compat.c b/libretro-common/net/net_compat.c index 1c3e6a3508..a2950a8586 100644 --- a/libretro-common/net/net_compat.c +++ b/libretro-common/net/net_compat.c @@ -213,7 +213,7 @@ int getaddrinfo_retro(const char *node, const char *service, in_addr->sin_family = host->h_addrtype; -#if defined(AF_INET6) && !defined(__CELLOS_LV2__) +#if defined(AF_INET6) && !defined(__CELLOS_LV2__) || defined(VITA) /* TODO/FIXME - In case we ever want to support IPv6 */ in_addr->sin_addr.s_addr = inet_addr(host->h_addr_list[0]); #else