summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-01-10 19:25:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-01-10 19:25:00 +0100
commit676c75fb1826a2d24c4ec3a929b1c1634787c9a5 (patch)
treeacd169b074fe377fefcfdb25b4e555517d0eb9ee
parentcd10d66ac902bf9ccb3d950c2c2a526bea53079a (diff)
downloadfastd-676c75fb1826a2d24c4ec3a929b1c1634787c9a5.tar
fastd-676c75fb1826a2d24c4ec3a929b1c1634787c9a5.zip
poll: more include cleanup
-rw-r--r--src/poll.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/poll.c b/src/poll.c
index 899c9e2..549d097 100644
--- a/src/poll.c
+++ b/src/poll.c
@@ -40,6 +40,7 @@
#ifdef USE_EPOLL
#include <sys/epoll.h>
+#include <sys/syscall.h>
#endif
@@ -67,16 +68,11 @@ static inline int handshake_timeout(void) {
#ifdef USE_EPOLL
-#include <fcntl.h>
-#include <sys/epoll.h>
-#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] = {};