Skip to content

Commit 5747c74

Browse files
endriftWinterMute
authored andcommitted
Fix POLL* definitions per Dolphin (#73)
1 parent 186b9e8 commit 5747c74

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

gc/network.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,16 @@ struct linger {
195195
#define ip4_addr4(ipaddr) ((u32)(ntohl((ipaddr)->s_addr)) & 0xff)
196196
#endif
197197

198-
#define POLLIN 0x0001
199-
#define POLLPRI 0x0002
200-
#define POLLOUT 0x0004
201-
#define POLLERR 0x0008
202-
#define POLLHUP 0x0010
203-
#define POLLNVAL 0x0020
198+
#define POLLRDNORM 0x0001
199+
#define POLLRDBAND 0x0002
200+
#define POLLPRI 0x0004
201+
#define POLLWRNORM 0x0008
202+
#define POLLWRBAND 0x0010
203+
#define POLLERR 0x0020
204+
#define POLLHUP 0x0040
205+
#define POLLNVAL 0x0080
206+
#define POLLIN (POLLRDNORM|POLLRDBAND)
207+
#define POLLOUT POLLWRNORM
204208

205209
#ifdef __cplusplus
206210
extern "C" {

0 commit comments

Comments
 (0)