From 66f625f840d199994dd1a036a7739e14d38555fe Mon Sep 17 00:00:00 2001 From: fgsfds Date: Mon, 27 Feb 2023 18:03:51 +0100 Subject: [PATCH] engine: psvita: use a macro for ioctlsocket like on all other platforms --- engine/platform/psvita/net_psvita.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/platform/psvita/net_psvita.h b/engine/platform/psvita/net_psvita.h index a2451fa3..4f111604 100644 --- a/engine/platform/psvita/net_psvita.h +++ b/engine/platform/psvita/net_psvita.h @@ -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 ) return -ENOSYS; } +#define ioctlsocket ioctl_psvita + #endif // NET_PSVITA_H