diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-11 13:49:50 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-11 13:49:50 +0200 |
commit | 339954714f69bbd395aa9bbe46850dcaa98e9f29 (patch) | |
tree | 00b17e206e3acc35303d24f6a1e76bf2de8c5664 /include | |
parent | 08ce54211ce4b8d6092321ca1b28773a680ddc45 (diff) |
convert form make to meson
Add .editorconfig.
Removed unused fallback definitions (for POSIX systems).
Diffstat (limited to 'include')
-rw-r--r-- | include/iopause.h | 16 | ||||
-rw-r--r-- | include/meson.build | 52 | ||||
-rw-r--r-- | include/select.h | 14 |
3 files changed, 56 insertions, 26 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" diff --git a/include/meson.build b/include/meson.build new file mode 100644 index 0000000..42439fd --- /dev/null +++ b/include/meson.build @@ -0,0 +1,52 @@ +qlibs_inc = include_directories('.') + +qlibs_hdrs = [ + 'alloc.h', + 'base64.h', + 'buffer.h', + 'byte.h', + 'case.h', + 'cdbmake.h', + 'cdbread.h', + 'close.h', + 'constmap.h', + 'direntry.h', + 'dnsresolv.h', + 'env.h', + 'error.h', + 'exit.h', + 'fd.h', + 'fifo.h', + 'fmt.h', + 'genalloc.h', + 'getln.h', + 'getoptb.h', + 'iopause.h', + 'ip.h', + 'lock.h', + 'logmsg.h', + 'ndelay.h', + 'open.h', + 'pathexec.h', + 'prot.h', + 'readclose.h', + 'readwrite.h', + 'rename.h', + 'scan.h', + 'seek.h', + 'select.h', + 'sig.h', + 'socket_if.h', + 'stralloc.h', + 'str.h', + 'taia.h', + 'tai.h', + 'timeoutconn.h', + 'timeout.h', + 'uint_t.h', + 'wait.h', +] + +qlibs_hdr_subdir = 'fehqlibs' + +install_headers(qlibs_hdrs, subdir : qlibs_hdr_subdir) diff --git a/include/select.h b/include/select.h index 7257ddd..41bfcb7 100644 --- a/include/select.h +++ b/include/select.h @@ -1,13 +1 @@ -#ifndef SELECT_H -#define SELECT_H - -#include <sys/time.h> -#include <sys/types.h> - -#ifdef HAS_SELECT_H - #include <sys/select.h> -#endif - -extern int select(); - -#endif +#include <sys/select.h> |