From 07cf742ca28c7007964a9596a5fcb7f1ab69883c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B3pez=20Guimaraes?= Date: Sat, 4 May 2024 16:22:11 +0100 Subject: [PATCH] Fix socket poll events values --- libctru/include/poll.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libctru/include/poll.h b/libctru/include/poll.h index 4bfbae3..443b554 100644 --- a/libctru/include/poll.h +++ b/libctru/include/poll.h @@ -1,11 +1,13 @@ #pragma once -#define POLLIN 0x01 -#define POLLPRI 0x02 -#define POLLHUP 0x04 // unknown ??? -#define POLLERR 0x08 // probably -#define POLLOUT 0x10 -#define POLLNVAL 0x20 +#define POLLIN 0x01 +#define POLLPRI 0x02 +#define POLLWRNORM 0x08 +#define POLLWRBAND 0x10 +#define POLLNVAL 0x20 +#define POLLHUP 0x00 // Unknown? +#define POLLERR 0x00 // Unknown? +#define POLLOUT POLLWRNORM typedef unsigned int nfds_t;