mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 06:11:03 +00:00
Add missing poll header parts of the VITA
This commit is contained in:
@@ -32,7 +32,24 @@ typedef int SOCKADDR_LEN;
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#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 <poll.h>
|
#include <poll.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ioctlsocket ioctl
|
#define ioctlsocket ioctl
|
||||||
#define LastSocketError() errno
|
#define LastSocketError() errno
|
||||||
|
|||||||
Reference in New Issue
Block a user