summaryrefslogtreecommitdiff
path: root/include/iopause.h
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-11 13:49:50 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-11 13:49:50 +0200
commit339954714f69bbd395aa9bbe46850dcaa98e9f29 (patch)
tree00b17e206e3acc35303d24f6a1e76bf2de8c5664 /include/iopause.h
parent08ce54211ce4b8d6092321ca1b28773a680ddc45 (diff)
convert form make to meson
Add .editorconfig. Removed unused fallback definitions (for POSIX systems).
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"