summaryrefslogtreecommitdiff
path: root/include/iopause.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/iopause.h')
-rw-r--r--include/iopause.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/include/iopause.h b/include/iopause.h
index 871c8eb..488c840 100644
--- a/include/iopause.h
+++ b/include/iopause.h
@@ -3,22 +3,12 @@
#define IOPAUSE_POLL
+#include <poll.h>
#include <sys/types.h>
-#ifdef HAS_POLL_H
- #include <poll.h>
typedef struct pollfd iopause_fd;
- #define IOPAUSE_READ POLLIN
- #define IOPAUSE_WRITE POLLOUT
-#else
-typedef struct {
- int fd;
- short events;
- short revents;
-} iopause_fd;
- #define IOPAUSE_READ 1
- #define IOPAUSE_WRITE 4
-#endif
+#define IOPAUSE_READ POLLIN
+#define IOPAUSE_WRITE POLLOUT
#include "taia.h"