diff --git a/libretro-common/include/net/net_compat.h b/libretro-common/include/net/net_compat.h index 71f3109a5b..1abcbc5e86 100644 --- a/libretro-common/include/net/net_compat.h +++ b/libretro-common/include/net/net_compat.h @@ -138,6 +138,14 @@ struct SceNetInAddr inet_aton(const char *ip_addr); #ifdef GEKKO #define sendto(s, msg, len, flags, addr, tolen) net_sendto(s, msg, len, 0, addr, 8) #define socket(domain, type, protocol) net_socket(domain, type, protocol) +#define bind(s, name, namelen) net_bind(s, name, namelen) +#define listen(s, backlog) net_listen(s, backlog) +#define accept(s, addr, addrlen) net_accept(s, addr, addrlen) +#define connect(s, addr, addrlen) net_connect(s, addr, addrlen) +#define send(s, data, size, flags) net_send(s, data, size, flags) +#define recv(s, mem, len, flags) net_recv(s, mem, len, flags) +#define recvfrom(s, mem, len, flags, from, fromlen) net_recvfrom(s, mem, len, flags, from, fromlen) +#define select(maxfdp1, readset, writeset, exceptset, timeout) net_select(maxfdp1, readset, writeset, exceptset, timeout) #endif static INLINE bool isagain(int bytes) diff --git a/libretro-common/net/net_compat.c b/libretro-common/net/net_compat.c index 68c0f62f96..de603b5083 100644 --- a/libretro-common/net/net_compat.c +++ b/libretro-common/net/net_compat.c @@ -297,7 +297,7 @@ bool network_init(void) retro_epoll_fd = sceNetEpollCreate("epoll", 0); #elif defined(GEKKO) char t[16]; - if (if_config(t, NULL, NULL, TRUE) < 0) + if (if_config(t, NULL, NULL, TRUE, 10) < 0) return false; #else signal(SIGPIPE, SIG_IGN); /* Do not like SIGPIPE killing our app. */