diff --git a/hio/lib/dns-cli.c b/hio/lib/dns-cli.c index 50e1347..206f891 100644 --- a/hio/lib/dns-cli.c +++ b/hio/lib/dns-cli.c @@ -26,6 +26,7 @@ #include #include "hio-prv.h" +#include #include struct hio_svc_dns_t diff --git a/hio/lib/sck.c b/hio/lib/sck.c index 54b0c1f..7ec9b8c 100644 --- a/hio/lib/sck.c +++ b/hio/lib/sck.c @@ -25,6 +25,7 @@ #include #include "hio-prv.h" +#include #include #include #include diff --git a/hio/lib/sys-mux.c b/hio/lib/sys-mux.c index 7551eb2..2f87f3a 100644 --- a/hio/lib/sys-mux.c +++ b/hio/lib/sys-mux.c @@ -104,7 +104,7 @@ int hio_sys_initmux (hio_t* hio) { #if defined(FD_CLOEXEC) int flags = fcntl(mux->kq, F_GETFD); - if (flags >= 0) fcntl (mux->kq, F_SETFD, flag | FD_CLOEXEC); + if (flags >= 0) fcntl (mux->kq, F_SETFD, flags | FD_CLOEXEC); #endif } #endif diff --git a/hio/lib/sys-prv.h b/hio/lib/sys-prv.h index 8de5386..74964cf 100644 --- a/hio/lib/sys-prv.h +++ b/hio/lib/sys-prv.h @@ -30,6 +30,7 @@ #include "hio-prv.h" #if defined(HAVE_SYS_EVENT_H) && defined(HAVE_KQUEUE) && defined(HAVE_KEVENT) +# include # include # define USE_KQUEUE #elif defined(HAVE_SYS_EPOLL_H)