mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: psvita: use a macro for ioctlsocket like on all other platforms
This commit is contained in:
parent
3e1833722f
commit
66f625f840
@ -41,8 +41,9 @@ GNU General Public License for more details.
|
|||||||
#define FIONBIO SO_NONBLOCK
|
#define FIONBIO SO_NONBLOCK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// this is only used to set non-blocking on sockets
|
/* ioctlsocket() is only used to set non-blocking on sockets */
|
||||||
static inline int ioctlsocket( int fd, int req, unsigned int *arg )
|
|
||||||
|
static inline int ioctl_psvita( int fd, int req, unsigned int *arg )
|
||||||
{
|
{
|
||||||
if ( req == FIONBIO )
|
if ( req == FIONBIO )
|
||||||
{
|
{
|
||||||
@ -51,4 +52,6 @@ static inline int ioctlsocket( int fd, int req, unsigned int *arg )
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define ioctlsocket ioctl_psvita
|
||||||
|
|
||||||
#endif // NET_PSVITA_H
|
#endif // NET_PSVITA_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user