mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
PSL1GHT fix http download (#14994)
This commit is contained in:
parent
58282ee98a
commit
0fe92cc954
@ -182,7 +182,7 @@ bool socket_set_block(int fd, bool block)
|
|||||||
u_long i = !block;
|
u_long i = !block;
|
||||||
|
|
||||||
return !ioctlsocket(fd, FIONBIO, &i);
|
return !ioctlsocket(fd, FIONBIO, &i);
|
||||||
#elif !defined(__PSL1GHT__) && defined(__PS3__) || defined(VITA) || defined(WIIU)
|
#elif defined(__PS3__) || defined(VITA) || defined(WIIU)
|
||||||
int i = !block;
|
int i = !block;
|
||||||
|
|
||||||
return !setsockopt(fd, SOL_SOCKET, SO_NBIO, &i, sizeof(i));
|
return !setsockopt(fd, SOL_SOCKET, SO_NBIO, &i, sizeof(i));
|
||||||
@ -212,7 +212,7 @@ int socket_close(int fd)
|
|||||||
#if defined(_WIN32) && !defined(_XBOX360)
|
#if defined(_WIN32) && !defined(_XBOX360)
|
||||||
/* WinSock has headers from the stone age. */
|
/* WinSock has headers from the stone age. */
|
||||||
return closesocket(fd);
|
return closesocket(fd);
|
||||||
#elif !defined(__PSL1GHT__) && defined(__PS3__) || defined(WIIU)
|
#elif defined(__PS3__) || defined(WIIU)
|
||||||
return socketclose(fd);
|
return socketclose(fd);
|
||||||
#elif defined(VITA)
|
#elif defined(VITA)
|
||||||
return sceNetSocketClose(fd);
|
return sceNetSocketClose(fd);
|
||||||
@ -224,7 +224,7 @@ int socket_close(int fd)
|
|||||||
int socket_select(int nfds, fd_set *readfds, fd_set *writefds,
|
int socket_select(int nfds, fd_set *readfds, fd_set *writefds,
|
||||||
fd_set *errorfds, struct timeval *timeout)
|
fd_set *errorfds, struct timeval *timeout)
|
||||||
{
|
{
|
||||||
#if !defined(__PSL1GHT__) && defined(__PS3__)
|
#if defined(__PS3__)
|
||||||
return socketselect(nfds, readfds, writefds, errorfds, timeout);
|
return socketselect(nfds, readfds, writefds, errorfds, timeout);
|
||||||
#elif defined(VITA)
|
#elif defined(VITA)
|
||||||
int i, j;
|
int i, j;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user