Browse Source

engine: psvita: check req in ioctlsocket()

pull/2/head
fgsfds 2 years ago committed by Alibek Omarov
parent
commit
3e1833722f
  1. 6
      engine/platform/psvita/net_psvita.h

6
engine/platform/psvita/net_psvita.h

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
net.h - psvita network stubs
net_psvita.h - psvita network stubs
Copyright (C) 2021-2023 fgsfds
This program is free software: you can redistribute it and/or modify
@ -43,8 +43,12 @@ GNU General Public License for more details. @@ -43,8 +43,12 @@ GNU General Public License for more details.
// this is only used to set non-blocking on sockets
static inline int ioctlsocket( int fd, int req, unsigned int *arg )
{
if ( req == FIONBIO )
{
return setsockopt( fd, SOL_SOCKET, SO_NONBLOCK, arg, sizeof( *arg ) );
}
return -ENOSYS;
}
#endif // NET_PSVITA_H

Loading…
Cancel
Save