From 2171439647c34a28e5b4b5b75573e8c5c7d15958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Jos=C3=A9=20Garc=C3=ADa=20Garc=C3=ADa?= Date: Wed, 17 May 2017 08:55:33 +0200 Subject: [PATCH] [VITA] buildfix --- libretro-common/net/net_compat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretro-common/net/net_compat.c b/libretro-common/net/net_compat.c index d8a19a33ab..b547c34ed2 100644 --- a/libretro-common/net/net_compat.c +++ b/libretro-common/net/net_compat.c @@ -362,6 +362,9 @@ struct in_addr6_compat const char *inet_ntop_compat(int af, const void *src, char *dst, socklen_t cnt) { +#if defined(VITA) + return sceNetInetNtop(af,src,dst,cnt); +#else if (af == AF_INET) { struct sockaddr_in in; @@ -386,4 +389,5 @@ const char *inet_ntop_compat(int af, const void *src, char *dst, socklen_t cnt) #endif return NULL; +#endif }