From 3bafc82305d929161838810f5aa13322a3e2508c Mon Sep 17 00:00:00 2001 From: CrystalCT Date: Mon, 8 Mar 2021 13:09:43 +0100 Subject: [PATCH] Add some PSL1GHT ifdefs --- libretro-common/include/net/net_compat.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libretro-common/include/net/net_compat.h b/libretro-common/include/net/net_compat.h index 3a5c02ab00..7f9f452e64 100644 --- a/libretro-common/include/net/net_compat.h +++ b/libretro-common/include/net/net_compat.h @@ -116,7 +116,11 @@ struct SceNetInAddr inet_aton(const char *ip_addr); #include #include +#if !defined(__PSL1GHT__) && defined(__PS3__) +#include +#else #include +#endif #endif @@ -143,6 +147,8 @@ static INLINE bool isagain(int bytes) if (WSAGetLastError() != WSAEWOULDBLOCK) return false; return true; +#elif !defined(__PSL1GHT__) && defined(__PS3__) + return (sys_net_errno == SYS_NET_EWOULDBLOCK) || (sys_net_errno == SYS_NET_EAGAIN); #elif defined(VITA) return (bytes<0 && (bytes == SCE_NET_ERROR_EAGAIN || bytes == SCE_NET_ERROR_EWOULDBLOCK)); #elif defined(WIIU)