From 6195007bf3b47cf429a7cd6bfb5836d8d3872804 Mon Sep 17 00:00:00 2001 From: Sunguk Lee Date: Fri, 23 Oct 2020 02:56:11 +0900 Subject: [PATCH] Add missing poll header parts of the VITA --- src/PlatformSockets.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/PlatformSockets.h b/src/PlatformSockets.h index 6f70bed..25d37ab 100644 --- a/src/PlatformSockets.h +++ b/src/PlatformSockets.h @@ -32,7 +32,24 @@ typedef int SOCKADDR_LEN; #include #include #include +#if defined(__vita__) +#define POLLIN 0x0001 +#define POLLPRI 0x0002 +#define POLLOUT 0x0004 +#define POLLERR 0x0008 +#define POLLRDNORM 0x0040 +#define POLLWRNORM POLLOUT +#define POLLRDBAND 0x0080 +#define POLLWRBAND 0x0100 + +struct pollfd { + int fd; + short events; + short revents; +}; +#else #include +#endif #define ioctlsocket ioctl #define LastSocketError() errno