Browse Source

engine: psvita: use a macro for ioctlsocket like on all other platforms

pull/2/head
fgsfds 2 years ago committed by Alibek Omarov
parent
commit
66f625f840
  1. 7
      engine/platform/psvita/net_psvita.h

7
engine/platform/psvita/net_psvita.h

@ -41,8 +41,9 @@ GNU General Public License for more details. @@ -41,8 +41,9 @@ GNU General Public License for more details.
#define FIONBIO SO_NONBLOCK
#endif
// this is only used to set non-blocking on sockets
static inline int ioctlsocket( int fd, int req, unsigned int *arg )
/* ioctlsocket() is only used to set non-blocking on sockets */
static inline int ioctl_psvita( int fd, int req, unsigned int *arg )
{
if ( req == FIONBIO )
{
@ -51,4 +52,6 @@ static inline int ioctlsocket( int fd, int req, unsigned int *arg ) @@ -51,4 +52,6 @@ static inline int ioctlsocket( int fd, int req, unsigned int *arg )
return -ENOSYS;
}
#define ioctlsocket ioctl_psvita
#endif // NET_PSVITA_H

Loading…
Cancel
Save