From 339954714f69bbd395aa9bbe46850dcaa98e9f29 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Thu, 11 Jul 2024 13:49:50 +0200 Subject: convert form make to meson Add .editorconfig. Removed unused fallback definitions (for POSIX systems). --- include/iopause.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'include/iopause.h') 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 #include -#ifdef HAS_POLL_H - #include 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" -- cgit v1.2.3