Skip to content

Commit

Permalink
Fix POLL* definitions per Dolphin (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Mar 3, 2020
1 parent 3b5b77f commit 5fa1efd
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions gc/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,16 @@ struct linger {
#define ip4_addr4(ipaddr) ((u32)(ntohl((ipaddr)->s_addr)) & 0xff)
#endif

#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
#define POLLRDNORM 0x0001
#define POLLRDBAND 0x0002
#define POLLPRI 0x0004
#define POLLWRNORM 0x0008
#define POLLWRBAND 0x0010
#define POLLERR 0x0020
#define POLLHUP 0x0040
#define POLLNVAL 0x0080
#define POLLIN (POLLRDNORM|POLLRDBAND)
#define POLLOUT POLLWRNORM

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 5fa1efd

Please sign in to comment.