mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: psvita: check req in ioctlsocket()
This commit is contained in:
parent
4b8e11f561
commit
3e1833722f
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
net.h - psvita network stubs
|
net_psvita.h - psvita network stubs
|
||||||
Copyright (C) 2021-2023 fgsfds
|
Copyright (C) 2021-2023 fgsfds
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
@ -44,7 +44,11 @@ GNU General Public License for more details.
|
|||||||
// this is only used to set non-blocking on sockets
|
// this is only used to set non-blocking on sockets
|
||||||
static inline int ioctlsocket( int fd, int req, unsigned int *arg )
|
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 setsockopt( fd, SOL_SOCKET, SO_NONBLOCK, arg, sizeof( *arg ) );
|
||||||
|
}
|
||||||
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // NET_PSVITA_H
|
#endif // NET_PSVITA_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user