diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-01-09 11:59:40 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-01-09 11:59:40 +0100 |
commit | b3dc95b4bef3bbc106b8812daebe4b980e8908cf (patch) | |
tree | a266b338ac9598222c14d9853365c40b52ee2cd6 /src/poll.c | |
parent | f11b14362b05f5965b0d1e6b9af1c48945884b9e (diff) | |
download | fastd-b3dc95b4bef3bbc106b8812daebe4b980e8908cf.tar fastd-b3dc95b4bef3bbc106b8812daebe4b980e8908cf.zip |
poll: define SYS_epoll_pwait if it isn't available
Diffstat (limited to 'src/poll.c')
-rw-r--r-- | src/poll.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -73,6 +73,11 @@ static inline int handshake_timeout(void) { #include <sys/syscall.h> +#ifndef SYS_epoll_pwait +#define SYS_epoll_pwait __NR_epoll_pwait +#endif + + /** Simplified epoll_pwait wrapper (as there are systems without or with broken epoll_pwait) */ static inline int epoll_wait_unblocked(int epfd, struct epoll_event *events, int maxevents, int timeout) { const uint8_t buf[_NSIG/8] = {}; |